Example usage for Java org.springframework.util StopWatch fields, constructors, methods, implement or subclass
The text is from its open source code.
StopWatch() Construct a new StopWatch . | |
StopWatch(String id) Construct a new StopWatch with the given ID. |
TaskInfo | getLastTaskInfo() Get the last task as a TaskInfo object. |
String | getLastTaskName() Get the name of the last task. |
long | getLastTaskTimeMillis() Get the time taken by the last task in milliseconds. |
long | getTotalTimeMillis() Get the total time in milliseconds for all tasks. |
double | getTotalTimeSeconds() Get the total time in seconds for all tasks. |
boolean | isRunning() Determine whether this StopWatch is currently running. |
String | prettyPrint() Generate a string with a table describing all tasks performed. |
String | shortSummary() Get a short description of the total running time. |
void | start() Start an unnamed task. |
void | start(String taskName) Start a named task. |
void | stop() Stop the current task. |
String | toString() Generate an informative string describing all tasks performed For custom reporting, call #getTaskInfo() and use the task info directly. |