Class LoggingStopwatch
java.lang.Object
com.ibm.wala.util.debug.LoggingStopwatch
A stop watch that prints log messages.
- Author:
- mschaefer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Convenience method that invokesmark(String, boolean)
withtrue
as its second argument.long
Mark the completion of a task, print the time it took to complete, and optionally restart the stopwatch.void
start()
Start the stopwatch.
-
Constructor Details
-
LoggingStopwatch
public LoggingStopwatch()
-
-
Method Details
-
start
public void start()Start the stopwatch. -
mark
Mark the completion of a task, print the time it took to complete, and optionally restart the stopwatch.- Parameters:
msg
- message to printreset
- whether to restart the stopwatch- Returns:
- the elapsed time in milliseconds
-
mark
Convenience method that invokesmark(String, boolean)
withtrue
as its second argument.
-