diff dbutil.h @ 928:7cd89d4e0335

Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Mar 2014 23:50:09 +0800
parents aa689d140928
children 5daedffd0769
line wrap: on
line diff
--- a/dbutil.h	Thu Mar 13 23:08:47 2014 +0800
+++ b/dbutil.h	Thu Mar 13 23:50:09 2014 +0800
@@ -106,4 +106,9 @@
 /* Returns 0 if a and b have the same contents */
 int constant_time_memcmp(const void* a, const void *b, size_t n);
 
+/* Returns a time in seconds that doesn't go backwards - does not correspond to
+a real-world clock */
+time_t monotonic_now();
+
+
 #endif /* _DBUTIL_H_ */