Class SystemTimeSource

java.lang.Object
lol.trq.alts.time.SystemTimeSource
All Implemented Interfaces:
TimeSource

public final class SystemTimeSource extends Object implements 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 Details

    • SystemTimeSource

      public SystemTimeSource()
      Creates a source reading the OS clock.
      Since:
      0.12.0
  • Method Details

    • now

      public Instant now()
      Returns the current instant.
      Specified by:
      now in interface TimeSource
      Returns:
      now, corrected
      Since:
      0.11.0