« Return to Thread: Accurate CPU timing on Windows -- How?

Re: Accurate CPU timing on Windows -- How?

by Michele Mazzucco-2 :: Rate this Message:

Reply to Author | View in Thread

On Wed, 2007-07-18 at 15:51 -0500, Jess Holle wrote:
>       * On Windows [at least], System.currentTimeMillis()'s resolution
>         is not milliseconds but rather about 0.01 seconds.
>               * We could use System.nanoTime() instead, but it appears
>                 that acquiring this takes a bit more time.  Moreover,
>                 for the usages in question millisecond accuracy is
>                 sufficient, but 0.01 seconds is not always.

Jess,

this is a kernel issue (kernel precision is typically 10/15 ms), it's
not related with java.


Michele

===========================================================================
For information on the Java Management extensions (JMX), please visit
our home page at http://java.sun.com/products/JavaManagement/
The JMX-FORUM archives are accessible at http://archives.java.sun.com
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JMX-FORUM".  For general help, send email to
listserv@... and include in the body of the message "help".

 « Return to Thread: Accurate CPU timing on Windows -- How?