Package bitronix.tm.utils
Class MonotonicClock
java.lang.Object
bitronix.tm.utils.MonotonicClock
A System.currentTimeMillis() replacement which guarantees monotonic time increment.
- Author:
- lorban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longReturn the current time in milliseconds, guaranteeing monotonic time increment.
-
Constructor Details
-
MonotonicClock
public MonotonicClock()
-
-
Method Details
-
currentTimeMillis
public static long currentTimeMillis()Return the current time in milliseconds, guaranteeing monotonic time increment.- Returns:
- the current time in milliseconds.
-