From 8589f46b86b8acd0439e1325818cc69f9050240d Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Mon, 30 Aug 2010 16:51:56 +0200 Subject: s3: use clock_gettime() in timespec_current() --- source3/lib/time.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3') 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; } -- cgit