summaryrefslogtreecommitdiff
path: root/src/common/timers.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-07-08 14:38:02 -0400
committerNick Mathewson <nickm@torproject.org>2016-07-19 11:40:46 +0200
commit6a2002fc091506f576934bbf50e7b8644b43bf4c (patch)
treef73f402d2f081b5ba11682e4239d659590943b65 /src/common/timers.h
parentdc6f5d1dc1ccc86f32b39b939a5f83c35865d666 (diff)
downloadtor-6a2002fc091506f576934bbf50e7b8644b43bf4c.tar.gz
tor-6a2002fc091506f576934bbf50e7b8644b43bf4c.zip
convert timers.c to use real monotonic time.
Diffstat (limited to 'src/common/timers.h')
-rw-r--r--src/common/timers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/timers.h b/src/common/timers.h
index 594cf38a64..2c36af172d 100644
--- a/src/common/timers.h
+++ b/src/common/timers.h
@@ -7,8 +7,9 @@
#include "orconfig.h"
#include "testsupport.h"
+struct monotime_t;
typedef struct timeout tor_timer_t;
-typedef void (*timer_cb_fn_t)(tor_timer_t *, void *, const struct timeval *);
+typedef void (*timer_cb_fn_t)(tor_timer_t *, void *, const struct monotime_t *);
tor_timer_t *timer_new(timer_cb_fn_t cb, void *arg);
void timer_set_cb(tor_timer_t *t, timer_cb_fn_t cb, void *arg);
void timer_schedule(tor_timer_t *t, const struct timeval *delay);