util
Class ThreadTimer.Tick

java.lang.Object
  extended by util.ThreadTimer.Tick
Enclosing class:
ThreadTimer

public static class ThreadTimer.Tick
extends Object

A moment in time


Method Summary
 long elapsedTime(boolean withoutGc, ThreadTimer.Tick end)
          Returns the elapsed time between the two Ticks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

elapsedTime

public long elapsedTime(boolean withoutGc,
                        ThreadTimer.Tick end)
Returns the elapsed time between the two Ticks. The returned value does not include any time spent by the JVM in garbage collection.

Parameters:
withoutGc - true if garbage collection time should not be included in result
end - the tick marking the end time
Returns:
elapsed time in milliseconds.