summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.c11
-rw-r--r--utils/utils.h10
2 files changed, 0 insertions, 21 deletions
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