How to sleep accurately

Jason House jason.james.house at gmail.com
Thu Jun 28 19:49:50 PDT 2007


BCS wrote:
> if you are on x86 and if you can get the clock speed and if you don't 
> mind asm you can get a clock cycle resolution busy wait using:


I'm trying to stay as cross platform as possible.  It's currently used 
on x86 and mac.  I'm discovering that gettimeofday is not available on 
the mac.  I still have to find another solution.


More information about the Digitalmars-d-learn mailing list