com.emarsys.ecommon.time
Class SystemTime

java.lang.Object
  extended by com.emarsys.ecommon.time.SystemTime
All Implemented Interfaces:
Time

public final class SystemTime
extends java.lang.Object
implements Time

The default implementation of Time that delegates to System.currentTimeMillis().

Author:
Michael "kULO" Kulovits

Method Summary
 long currentTimeMillis()
           Returns the current time in milliseconds.
static SystemTime getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SystemTime getInstance()

currentTimeMillis

public long currentTimeMillis()
Description copied from interface: Time

Returns the current time in milliseconds.

Subsequent calls to Time.currentTimeMillis() must not return values that are smaller then previous ones.

Specified by:
currentTimeMillis in interface Time
Returns:
the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
See Also:
System.currentTimeMillis(), Time.currentTimeMillis()


Copyright © 2010 emarsys AG. All Rights Reserved.