Month: April, 2008

Beware of System.nanoTime() in Java

25 April, 2008 (16:45) | Java, Programming

The documentation for System.nanoTime() (and the function’s name itself) leads developers to believe it’s a much more accurate timer than anything else Java provides. Depending on which set of documentation you read, it claims to use “the most precise available system timer”. While I can’t speak for any architecture other than x86, I […]