>Linux system timer resolution is (according to manpage) 10msecs.

Yep, although this is configurable in the kernel.

>And currentTimeMillis returns increments below a 10msec resolution.

Newer kernels have more precise timers - they take advantage of some
timers in the Pentium. I believe the basic system calls to get time do
this transparently, so Java probably just passes the data on through.

I don't know what's going on with sleeps though. Maybe it's rounding
down instead of up?

Reply via email to