aboutsummaryrefslogtreecommitdiff
path: root/src/lib/time/tvdiff.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-12-07 16:35:23 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-01-02 15:25:55 +0200
commit926fc93be5b6afab1a604ecd7c79aa6e8ae8a676 (patch)
treead9b0bd2298f8035734d777f42b1333fb5cf990d /src/lib/time/tvdiff.c
parentdd04917851c23f16a11c0d2b0c62ea76c93c4c7d (diff)
downloadtor-926fc93be5b6afab1a604ecd7c79aa6e8ae8a676.tar.gz
tor-926fc93be5b6afab1a604ecd7c79aa6e8ae8a676.zip
Concentrate all TOR_USEC_PER_SEC definitions in a single header file.
Co-authored-by: Mike Perry <mikeperry-git@torproject.org>
Diffstat (limited to 'src/lib/time/tvdiff.c')
-rw-r--r--src/lib/time/tvdiff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/time/tvdiff.c b/src/lib/time/tvdiff.c
index bc8a1166e7..9dfb63c26f 100644
--- a/src/lib/time/tvdiff.c
+++ b/src/lib/time/tvdiff.c
@@ -11,6 +11,7 @@
#include "lib/time/tvdiff.h"
#include "lib/cc/compat_compiler.h"
+#include "lib/defs/time.h"
#include "lib/log/log.h"
#ifdef _WIN32
@@ -20,8 +21,6 @@
#include <sys/time.h>
#endif
-#define TOR_USEC_PER_SEC 1000000
-
/** Return the difference between start->tv_sec and end->tv_sec.
* Returns INT64_MAX on overflow and underflow.
*/