Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
12c (12.2.1.4.0)
E90869-02
Returns a "safe" current time in milliseconds.
Namespace: Tangosol.Util
Assembly: Coherence (in Coherence.dll) Version: 12.2.1.4014 (12.2.1.4014)
Syntax
C# |
---|
public static long GetSafeTimeMillis() |
Return Value
The difference, measured in milliseconds, between the corrected current time and midnight, January 1, 0001.
Remarks
This method guarantees that the time never "goes back".
More specifically, when called twice on the same thread, the
second call will never return a value that is less then the value
returned by the first call. If a system time correction becomes
necessary, an attempt will be made to gradually compensate the
returned value, so in the long run the value returned by this
method is the same as the system time.