timeval: gettimeofday() for Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 3 Mar 2014 22:13:03 +0000 (14:13 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 5 Mar 2014 16:38:18 +0000 (08:38 -0800)
commitbae94bc77362b59a52c0f562e62ff96198dab9d0
tree3d00a675ad222155c4365949396e2105c1bcdb83
parent48f8613f26a90e133ff3fce2fe16053dcaabc957
timeval: gettimeofday() for Windows.

Use GetSystemTimePreciseAsFileTime() for gettimeofday().
GetSystemTimePreciseAsFileTime() provides the result that is more
high resolution than just the microsecond that gittimeofday() in
Linux provides. So we need to remove some additional precision.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/timeval.c