junit.extensions.abbot
Class Timer
java.lang.Object
|
+--junit.extensions.abbot.Timer
- public class Timer
- extends Object
Time and performance measurement utilities.
- Author:
- twall
Constructor Summary |
Timer()
Basic constructor which sets the timer base to the current time. |
Method Summary |
long |
elapsed()
Return the number of milliseconds elapsed since the last timer
reset. |
long |
elapsed(Runnable action)
Return the length of time elapsed to run the given runnable. |
void |
reset()
Set the start time to the current time. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Timer
public Timer()
- Basic constructor which sets the timer base to the current time.
elapsed
public long elapsed()
- Return the number of milliseconds elapsed since the last timer
reset.
elapsed
public long elapsed(Runnable action)
- Return the length of time elapsed to run the given runnable.
reset
public void reset()
- Set the start time to the current time.
Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on