summaryrefslogtreecommitdiffstats
path: root/src/timer_gettimeofday.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-02-26 19:42:22 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-01 12:33:02 +0000
commit87fade88bd8471d0459a306255403e854122120e (patch)
tree1f090b3419983d8d08c72bfd67895f7fec679dd3 /src/timer_gettimeofday.c
parent721aa6ded9c736e3cc5b20824dd58b1af4f4a907 (diff)
timer: Introduce osmo_clock_gettime to override clock_gettime
Change-Id: I5bebc6e01fc9d238065bc2517058f0ba85620349
Diffstat (limited to 'src/timer_gettimeofday.c')
-rw-r--r--src/timer_gettimeofday.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer_gettimeofday.c b/src/timer_gettimeofday.c
index 15b5e31d..5273a3b8 100644
--- a/src/timer_gettimeofday.c
+++ b/src/timer_gettimeofday.c
@@ -39,7 +39,7 @@ struct timeval osmo_gettimeofday_override_time = { 23, 424242 };
* N. B: gettimeofday() is affected by discontinuous jumps in the system time
* (e.g., if the system administrator manually changes the system time).
* Hence this should NEVER be used for elapsed time computation.
- * Instead, clock_gettime(CLOCK_MONOTONIC, ..) should be used for that (with similar shim if necessary).
+ * Instead, osmo_clock_gettime() with CLOCK_MONOTONIC should be used for that.
*/
int osmo_gettimeofday(struct timeval *tv, struct timezone *tz)
{