From 3488e337b64f7444f3021ca98f391d4ded3326e4 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 21 Apr 2016 14:34:36 +0100 Subject: remove unused wallclock API --- utils/utils.c | 11 ----------- utils/utils.h | 10 ---------- 2 files changed, 21 deletions(-) (limited to 'utils') diff --git a/utils/utils.c b/utils/utils.c index cde3fa306..2a41c8a4c 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -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 /** diff --git a/utils/utils.h b/utils/utils.h index 8bc8d3b28..a4362069f 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -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 -- cgit v1.2.3