remove unused wallclock API
This commit is contained in:
parent
6560384a2c
commit
3488e337b6
|
@ -265,17 +265,6 @@ const char *rfc1123_date(time_t t)
|
|||
}
|
||||
|
||||
|
||||
/* exported interface documented in utils/utils.h */
|
||||
unsigned int wallclock(void)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
if (gettimeofday(&tv, NULL) == -1)
|
||||
return 0;
|
||||
|
||||
return ((tv.tv_sec * 100) + (tv.tv_usec / 10000));
|
||||
}
|
||||
|
||||
#ifndef HAVE_STRCASESTR
|
||||
|
||||
/**
|
||||
|
|
|
@ -156,16 +156,6 @@ bool is_dir(const char *path);
|
|||
*/
|
||||
char *human_friendly_bytesize(unsigned long bytesize);
|
||||
|
||||
/**
|
||||
* Returns a number of centiseconds, that increases in real time, for the
|
||||
* purposes of measuring how long something takes in wall-clock terms.
|
||||
*
|
||||
* The implementation uses gettimeofday() for this. Should the call
|
||||
* to gettimeofday() fail, it returns zero.
|
||||
*
|
||||
* \return number of centiseconds that increases monotonically
|
||||
*/
|
||||
unsigned int wallclock(void);
|
||||
|
||||
/**
|
||||
* Generate a string from one or more component elemnts separated with
|
||||
|
|
Loading…
Reference in New Issue