|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uu.cs.treewidth.timing.JavaNanoTime
public class JavaNanoTime
Has better resolution than JavaSystemTime, but not sure if this is safe. (That's why it is not the default.) It definately isn't safe when multithreading on windows. It also might not be when singlethreaded on a multiproc/core windows. TODO Have a look at this sometime.
Constructor Summary | |
---|---|
JavaNanoTime()
|
Method Summary | |
---|---|
long |
now()
For Stopwatch to make sense, the result of subsequent calls to now() have to be non-decreasing (which is reasonable for `time'). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaNanoTime()
Method Detail |
---|
public long now()
TimeSource
now
in interface TimeSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |