summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-21 14:34:36 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-21 14:34:36 +0100
commit3488e337b64f7444f3021ca98f391d4ded3326e4 (patch)
tree277ba138314410eb2902b7ea9fabd2eb87432d3a /utils
parent6560384a2c02370f2c649dbb718c3b97f87918d0 (diff)
downloadnetsurf-3488e337b64f7444f3021ca98f391d4ded3326e4.tar.gz
netsurf-3488e337b64f7444f3021ca98f391d4ded3326e4.tar.bz2
remove unused wallclock API
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