From 20318f70228969cdc468c55ab127c463e113bdd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Jacke?= Date: Mon, 30 Aug 2010 16:51:56 +0200 Subject: [PATCH] s3: use clock_gettime() in timespec_current() --- source3/lib/time.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source3/lib/time.c b/source3/lib/time.c index 3a43a5b6cd9..8b28de61055 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; } -- 2.11.4.GIT