Module com.github.f4b6a3.uuid
Class WindowsTimeFunction
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.function.impl.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 Summary
Constructors Constructor Description WindowsTimeFunction()
-
-
-
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:
getAsLongin interfaceLongSupplier
-
-