diff options
author | Björn Jacke <bj@sernet.de> | 2010-09-06 20:27:24 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-09-07 20:29:13 +0200 |
commit | b428952eefd250d6d4ce77ad89325e9803940d11 (patch) | |
tree | b831b1535c3e451042a8d4e8fbf5a8f8509dea09 /lib/util/time.h | |
parent | e64e3985688e57a882e0e128b256ec5f84c6f67a (diff) | |
download | samba-b428952eefd250d6d4ce77ad89325e9803940d11.tar.gz samba-b428952eefd250d6d4ce77ad89325e9803940d11.tar.bz2 samba-b428952eefd250d6d4ce77ad89325e9803940d11.zip |
lib/util: add time_mono() for monotonic time a la time()
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 720a262b29..345382b80a 100644 --- a/lib/util/time.h +++ b/lib/util/time.h @@ -56,6 +56,11 @@ a wrapper to preferably get the monotonic time _PUBLIC_ void clock_gettime_mono(struct timespec *tp); /** +a wrapper to preferably get the monotonic time in s +**/ +_PUBLIC_ time_t time_mono(time_t *t); + +/** interpret an 8 byte "filetime" structure to a time_t It's originally in "100ns units since jan 1st 1601" **/ |