remove unused wallclock API

This commit is contained in:
Vincent Sanders 2016-04-21 14:34:36 +01:00
parent 6560384a2c
commit 3488e337b6
2 changed files with 0 additions and 21 deletions

View File

@ -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
/**

View File

@ -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