Re: Thread.sleep takes lot of CPU time!



Hi Raga,
How are you measuring CPU time ?

I guess you are using a profiler.
It is highly likely that your loop is very light - taking 0.01% of
system time - and out of that the sleep method is taking 30%?
essentially being 30% of nothing.


Pranshu

.