net.grinder.util
Class StandardTimeAuthority

java.lang.Object
  extended by 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

Constructor Summary
StandardTimeAuthority()
           
 
Method Summary
 long getTimeInMilliseconds()
          Return the current time in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardTimeAuthority

public StandardTimeAuthority()
Method Detail

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.