On Mon, Mar 03, 2014 at 02:46:27PM -0800, Gurucharan Shetty wrote: > QueryPerformanceCounter() retrieves the current value of the performance > counter, which is a high resolution (<1us) time stamp that can be used for > time-interval measurements. So, use it for MONOTONIC clock. > > The GetSystemTimePreciseAsFileTime() function retrieves the current system > date > and time with the highest possible level of precision (<1us). Use it for > real time clock. This function returns a counter representing the number of > 100-nanosecond intervals since January 1, 1601. To make it compatible with > Linux CLOCK_REALTIME, we need to calculate the 100-nanoseconds counter value > till 01/01/1970. > > An upcoming commit implements gettimeofday() using the same clock, so, > carve out a function. > > Signed-off-by: Gurucharan Shetty <gshe...@nicira.com>
Acked-by: Ben Pfaff <b...@nicira.com> I'd also be OK with implementing this in terms of xclock_gettime() on all platforms. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev