Class MonitorClockImpl
java.lang.Object
net.officefloor.frame.impl.execute.asset.MonitorClockImpl
- All Implemented Interfaces:
MonitorClock
MonitorClock implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongObtains the approximate current time.voidUpdates the current time.
-
Constructor Details
-
MonitorClockImpl
public MonitorClockImpl()
-
-
Method Details
-
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().
-