Class SystemTimeSource
java.lang.Object
lol.trq.alts.time.SystemTimeSource
- All Implemented Interfaces:
TimeSource
The default
TimeSource: the OS clock, uncorrected. Fine for a claim whose target is not
millisecond-critical; a claim that needs the sub-second edge wants NtpTimeSource instead.- Since:
- 0.11.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SystemTimeSource
public SystemTimeSource()Creates a source reading the OS clock.- Since:
- 0.12.0
-
-
Method Details
-
now
Returns the current instant.- Specified by:
nowin interfaceTimeSource- Returns:
- now, corrected
- Since:
- 0.11.0
-