public class PerformanceTimer
extends java.lang.Object
Constructor and Description |
---|
PerformanceTimer(java.lang.String tagName) |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Restart the timer.
|
void |
time()
Start a timer, or log the duration if it has been started, then restart the timer.
|
void |
time(java.lang.String operation)
Log an operation that has just been finished, then restart the timer.
|
public void time()
public void time(java.lang.String operation)
operation
- Operation namepublic void reset()