Class WindowsTimeFunction

  • All Implemented Interfaces:
    TimeFunction, LongSupplier

    public final class WindowsTimeFunction
    extends Object
    implements TimeFunction
    This function is for WINDOWS systems. In WINDOWS, the typical system time granularity is 15.625ms due to a default 64Hz timer frequency.
    • Constructor Detail

      • WindowsTimeFunction

        public WindowsTimeFunction()
      • WindowsTimeFunction

        public WindowsTimeFunction​(Clock clock)
    • Method Detail

      • getAsLong

        public long getAsLong()
        Returns the timestamp. It can be up to 48ms ahead of system time due to time granularity and counter shift.
        Specified by:
        getAsLong in interface LongSupplier