realtime HighPerformanceCounter information
Lutger
lutger.blijdestijn at gmail.com
Tue Nov 21 17:28:43 PST 2006
nobody_ wrote:
> Is it possible to get timing information before stopping a timer?
>
> Something like this:
>
> HighPerformanceCounter c = new HighPerformanceCounter();
> c.start();
> while(c.microseconds()<1000){
> pauze();
> }
> c.stop();
>
> When I do this now, c.microseconds() returns some 'random number :(
>
>
It is not possible as is, but you could wrap it in a function yourself
that stops, get's the results and then starts again. Perhaps they even
get inlined?
Other than that the code is pretty straightforward to rip out and make
this change yourself.
More information about the Digitalmars-d-learn
mailing list