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
MonitorClock
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MonitorClockImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
currentTimeMillis()
Obtains the approximate current time.void
updateTime()
Updates the current time.
-
-
-
Method Detail
-
updateTime
public void updateTime()
Updates the current time.
-
currentTimeMillis
public long currentTimeMillis()
Description copied from interface:MonitorClock
Obtains the approximate current time.
This is more efficient means to obtain
System.currentTimeMillis()
as complete millisecond accuracy is not required.- Specified by:
currentTimeMillis
in interfaceMonitorClock
- Returns:
- Approximate
System.currentTimeMillis()
.
-
-