public class LoggingStopwatch extends Object
Constructor and Description |
---|
LoggingStopwatch() |
Modifier and Type | Method and Description |
---|---|
long |
mark(String msg)
Convenience method that invokes
mark(String, boolean) with true
as its second argument. |
long |
mark(String msg,
boolean reset)
Mark the completion of a task, print the time it took to complete,
and optionally restart the stopwatch.
|
void |
start()
Start the stopwatch.
|
public void start()
public long mark(String msg, boolean reset)
msg
- message to printreset
- whether to restart the stopwatchpublic long mark(String msg)
mark(String, boolean)
with true
as its second argument.