DateTimeUtilsGetSafeTimeMillis Method |
.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Returns a "safe" current time in milliseconds.
Namespace:
Tangosol.Util
Assembly:
Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntaxpublic static long GetSafeTimeMillis()
Return Value
Type:
Int64
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.
See Also