bitronix.tm.utils
Class MonotonicClock

java.lang.Object
  extended by bitronix.tm.utils.MonotonicClock

public class MonotonicClock
extends Object

A System.currentTimeMillis() replacement which guarantees monotonic time increment.

Author:
lorban

Constructor Summary
MonotonicClock()
           
 
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
 

Constructor Detail

MonotonicClock

public MonotonicClock()
Method Detail

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.