net.grinder.util
Class StandardTimeAuthority
java.lang.Object
net.grinder.util.StandardTimeAuthority
- All Implemented Interfaces:
- TimeAuthority
public final class StandardTimeAuthority
- extends Object
- implements TimeAuthority
A standard TimeAuthority implementation.
The implementation uses J2SE 5's System.nanoTime() method, since it
it typically more precise than System.currentTimeMillis().
- Author:
- Philip Aston
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardTimeAuthority
public StandardTimeAuthority()
getTimeInMilliseconds
public long getTimeInMilliseconds()
- Return the current time in milliseconds.
- Specified by:
getTimeInMilliseconds in interface TimeAuthority
- Returns:
- The time. The base time is the Epoch.
Copyright © 2000-2013. All Rights Reserved.