realtime HighPerformanceCounter information

Lutger lutger.blijdestijn at gmail.com
Wed Nov 22 02:56:28 PST 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.



More information about the Digitalmars-d-learn mailing list