net.grinder.util
Interface TimeAuthority

All Known Subinterfaces:
Sleeper
All Known Implementing Classes:
SleeperImplementation, StandardTimeAuthority

public interface TimeAuthority

Something that knows the time.

Author:
Philip Aston

Method Summary
 long getTimeInMilliseconds()
          Return the current time in milliseconds.
 

Method Detail

getTimeInMilliseconds

long getTimeInMilliseconds()
Return the current time in milliseconds.

This is an abstraction over System.currentTimeMillis() and the J2SE 5 System.nanoTime() method.

Returns:
The time. The base time is the Epoch, even if the implementation uses System.nanoTime().


Copyright © 2000-2013. All Rights Reserved.