summaryrefslogtreecommitdiff
path: root/lib/util/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/time.h')
-rw-r--r--lib/util/time.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/time.h b/lib/util/time.h
index 90890cdbc8..720a262b29 100644
--- a/lib/util/time.h
+++ b/lib/util/time.h
@@ -149,6 +149,11 @@ _PUBLIC_ NTTIME nttime_from_string(const char *s);
_PUBLIC_ int64_t usec_time_diff(const struct timeval *tv1, const struct timeval *tv2);
/**
+ return (tp1 - tp2) in nanoseconds
+*/
+_PUBLIC_ int64_t nsec_time_diff(const struct timespec *tp1, const struct timespec *tp2);
+
+/**
return a zero timeval
*/
_PUBLIC_ struct timeval timeval_zero(void);