bitronix.tm.utils
Class MonotonicClock
java.lang.Object
bitronix.tm.utils.MonotonicClock
public class MonotonicClock
- extends Object
A System.currentTimeMillis() replacement which guarantees monotonic time increment.
- Author:
- lorban
Method Summary |
static long |
currentTimeMillis()
Return the current time in milliseconds, guaranteeing monotonic time increment. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonotonicClock
public MonotonicClock()
currentTimeMillis
public static long currentTimeMillis()
- Return the current time in milliseconds, guaranteeing monotonic time increment.
- Returns:
- the current time in milliseconds.
Copyright © 2006-2013 Bitronix Software. All Rights Reserved.