util
Class ThreadTimer.Tick
java.lang.Object
util.ThreadTimer.Tick
- Enclosing class:
- ThreadTimer
public static class ThreadTimer.Tick
- extends Object
A moment in time
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 resultend
- the tick marking the end time
- Returns:
- elapsed time in milliseconds.