Class MonitorClockImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.asset.MonitorClockImpl
-
- All Implemented Interfaces:
MonitorClock
public class MonitorClockImpl extends java.lang.Object implements MonitorClock
MonitorClockimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MonitorClockImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcurrentTimeMillis()Obtains the approximate current time.voidupdateTime()Updates the current time.
-
-
-
Method Detail
-
updateTime
public void updateTime()
Updates the current time.
-
currentTimeMillis
public long currentTimeMillis()
Description copied from interface:MonitorClockObtains the approximate current time.
This is more efficient means to obtain
System.currentTimeMillis()as complete millisecond accuracy is not required.- Specified by:
currentTimeMillisin interfaceMonitorClock- Returns:
- Approximate
System.currentTimeMillis().
-
-