November 22, 2006
Chris Nicholson-Sauls wrote:
> Actually... you don't have to do anything.  The implementation of .close() does nothing but query for the current counter state and store it.  Repeated calls to .close(), therefore, will equate to repeated re-queries to the counter, with all calls to .*seconds() in between doing their math on the same original .start() result.
> 
> So... you already have what you want.  Just make sure to call .close() once before calling the .*seconds() methods.  (At least on Windows... I admit to not checking the linux impl.)
> 
> -- Chris Nicholson-Sauls

Ah yes, sorry for the misinformation. It's little counter intuitive for me.
I didn't see any linux implementation of HighPerformanceCounter.
1 2
Next ›   Last »