]> Savannah Git Hosting - gnulib.git/commit
gettimeofday: Provide higher resolution on native Windows.
authorBruno Haible <bruno@clisp.org>
Sun, 30 Apr 2017 10:15:08 +0000 (12:15 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Apr 2017 17:26:37 +0000 (19:26 +0200)
commit8625e57a6e10f41b50d6912d1f9205533bae16b6
treed0e6bf57ad841ca5ba0c49ef0737d8fb5f8bdfdb
parent6736a8833373cc6302e57c4b4ae6ff05a15a27a6
gettimeofday: Provide higher resolution on native Windows.

* lib/gettimeofday.c: Don't include <sys/timeb.h>.
(GetSystemTimePreciseAsFileTimeFuncType): New variable.
(initialize): Initialize it.
(gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
'struct timeval'. Don't use _ftime().
* m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
<sys/timeb.h> and _ftime.
ChangeLog
lib/gettimeofday.c
m4/gettimeofday.m4