datetime review part 2

Kagamin spam at here.lot
Fri Nov 26 13:23:44 PST 2010


Jonathan M Davis Wrote:

> totally fries Clock.currAppTick(), which tells you how long the application has 
> been running. The documentation for QueryPermanceCounter() and clock_gettime() 
> give no indication that the clock stops counting when a thread is sleeping.

I think, QueryPermanceCounter just queries processor's builtin counter (HPET). So it's hardware implementation defined. HPET is not present on older hardware, and future hardware can implement something different.


More information about the Digitalmars-d mailing list