yeah as i said the testing loop is pretty bad in a multitasking os, but if you only use it in short bursts it'll be ok ( given that you can't use a thread dormant method)
in windows, the clock method would put you around 80% cpu usage, the Sleep method would put you in the < 15% which is normal system idle.
|