diff options
author | Björn Jacke <bj@sernet.de> | 2010-08-30 12:10:29 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-08-31 10:25:03 +0200 |
commit | c091b3344badac6241b85c6cf2f7dacb0f06047c (patch) | |
tree | 912cbf0689429d2b7a2054fd29029a616c86d498 /lib/util/time.h | |
parent | 63b1f2ee813b430e1f4bec3abb28a6266f8a82c8 (diff) | |
download | samba-c091b3344badac6241b85c6cf2f7dacb0f06047c.tar.gz |
lib/util: add function to query the monotonic clock with the required fallback to the realtime clock
Diffstat (limited to 'lib/util/time.h')
-rw-r--r-- | lib/util/time.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util/time.h b/lib/util/time.h index cf6dc1caa75..90890cdbc81 100644 --- a/lib/util/time.h +++ b/lib/util/time.h @@ -51,6 +51,11 @@ a gettimeofday wrapper _PUBLIC_ void GetTimeOfDay(struct timeval *tval); /** +a wrapper to preferably get the monotonic time +**/ +_PUBLIC_ void clock_gettime_mono(struct timespec *tp); + +/** interpret an 8 byte "filetime" structure to a time_t It's originally in "100ns units since jan 1st 1601" **/ |