Thread.sleep (DMD 2.020)

torhu no at spam.invalid
Sun Nov 2 08:25:56 PST 2008


Sean Kelly wrote:
> John C wrote:
...
>> Win32's Sleep(50) seems to be the same as Thread.sleep(500_000). Is that right?
> 
> Yup.  There should probably be some sort of TimeSpan struct to help 
> prevent these mistakes.
> 

I assume people won't need a higher resolution than milliseconds that 
often.  Could Thread.sleep be changed into something like this?

Thread.sleep(long millis, long hundredsOfNanos=0);



More information about the Digitalmars-d mailing list