Re: [ovs-dev] [PATCH 1/2] timeval: clock_gettime() for Windows.

2014-03-04 Thread Ben Pfaff
On Tue, Mar 04, 2014 at 09:10:14AM -0800, Gurucharan Shetty wrote: > On Tue, Mar 4, 2014 at 8:59 AM, Ben Pfaff wrote: > > 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 r

Re: [ovs-dev] [PATCH 1/2] timeval: clock_gettime() for Windows.

2014-03-04 Thread Gurucharan Shetty
On Tue, Mar 4, 2014 at 8:59 AM, Ben Pfaff wrote: > 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 measureme

Re: [ovs-dev] [PATCH 1/2] timeval: clock_gettime() for Windows.

2014-03-04 Thread Gurucharan Shetty
On Tue, Mar 4, 2014 at 8:55 AM, Ben Pfaff wrote: > 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 measureme

Re: [ovs-dev] [PATCH 1/2] timeval: clock_gettime() for Windows.

2014-03-04 Thread Ben Pfaff
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 GetSystem

Re: [ovs-dev] [PATCH 1/2] timeval: clock_gettime() for Windows.

2014-03-04 Thread Ben Pfaff
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 GetSystem

[ovs-dev] [PATCH 1/2] timeval: clock_gettime() for Windows.

2014-03-03 Thread Gurucharan Shetty
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 w