jwars.synch
Interface Watch
- public interface Watch
- The Watch interface is implemented to tell the Timer class that objects of this this class are able to return the current time in relation to some arbitrary reference time. For example, a Watch could be usd to wrap the System.currentTimeMillis() or System.nanoTime() methods, or use other clocks such as sun.misc.Perf or 3rd party libraries.
getTime
public long getTime()
- Returns the total time in milliseconds elapsed since some arbitrary reference point.
- Returns:
- current time in milliseconds