diff options
author | Matt Johnston <matt@ucc.asn.au> | 2014-03-13 23:50:09 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2014-03-13 23:50:09 +0800 |
commit | e767bbb41f277ebb8f477e5cda5b97a3a52b08a7 (patch) | |
tree | 79e85d770254e5a929aa6d3e09974cbf1fdd6d2e /dbutil.h | |
parent | 2b599df57abf70963706b62604ecc2c421b549da (diff) |
Add new monotonic_now() wrapper so that timeouts are unaffected by
system clock changes
Diffstat (limited to 'dbutil.h')
-rw-r--r-- | dbutil.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -106,4 +106,9 @@ int m_str_to_uint(const char* str, unsigned int *val); /* 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_ */ |