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
Function that returns a number of 100-nanoseconds since 1970-01-01 (Unix epoch).This function is for WINDOWS systems.
On WINDOWS, the typical system time granularity is 15.625ms due to a default 64Hz timer frequency.
It can advance be up to 48ms ahead of system time.
- See Also:
TimeFunction
-
-
Constructor Summary
Constructors Constructor Description WindowsTimeFunction()WindowsTimeFunction(Clock clock)
-
-
-
Constructor Detail
-
WindowsTimeFunction
public WindowsTimeFunction()
-
WindowsTimeFunction
public WindowsTimeFunction(Clock clock)
-
-
Method Detail
-
getAsLong
public long getAsLong()
- Specified by:
getAsLongin interfaceLongSupplier
-
-