Class LoggingStopwatch
java.lang.Object
com.ibm.wala.util.debug.LoggingStopwatch
A stop watch that prints log messages.
- Author:
- mschaefer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongConvenience method that invokesmark(String, boolean)withtrueas its second argument.longMark the completion of a task, print the time it took to complete, and optionally restart the stopwatch.voidstart()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)withtrueas its second argument.
-