nl.uu.cs.treewidth.timing
Class JavaSystemTime

java.lang.Object
  extended by nl.uu.cs.treewidth.timing.JavaSystemTime
All Implemented Interfaces:
TimeSource

public class JavaSystemTime
extends java.lang.Object
implements TimeSource

TimeSource implementation using System.currentTimeMillis().
Beware: appears to have only 10~20 ms resolution.

Author:
tw team

Constructor Summary
JavaSystemTime()
           
 
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

JavaSystemTime

public JavaSystemTime()
Method Detail

now

public long now()
Description copied from interface: TimeSource
For Stopwatch to make sense, the result of subsequent calls to now() have to be non-decreasing (which is reasonable for `time').

Specified by:
now in interface TimeSource
Returns:
in milliseconds.