diff options
author | Björn Jacke <bj@sernet.de> | 2010-08-30 16:51:56 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-08-31 09:07:36 +0200 |
commit | 8589f46b86b8acd0439e1325818cc69f9050240d (patch) | |
tree | fee96d24622c7d1f99b0890646bf72e5055807c6 | |
parent | 3df1037a74181ef314e2115ade836546a572ee48 (diff) | |
download | samba-8589f46b86b8acd0439e1325818cc69f9050240d.tar.gz samba-8589f46b86b8acd0439e1325818cc69f9050240d.tar.bz2 samba-8589f46b86b8acd0439e1325818cc69f9050240d.zip |
s3: use clock_gettime() in timespec_current()
-rw-r--r-- | source3/lib/time.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c index 71d6587199..fad5d97cb1 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -356,11 +356,8 @@ struct timeval convert_timespec_to_timeval(const struct timespec ts) struct timespec timespec_current(void) { - struct timeval tv; struct timespec ts; - GetTimeOfDay(&tv); - ts.tv_sec = tv.tv_sec; - ts.tv_nsec = tv.tv_usec * 1000; + clock_gettime(CLOCK_REALTIME, &ts); return ts; } |