Java org.springframework.util StopWatch fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.util StopWatch fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.util StopWatch.

The text is from its open source code.

Subclass

org.springframework.util.StopWatch has subclasses.
Click this link to see all its subclasses.

Constructor

StopWatch()
Construct a new StopWatch .
StopWatch(String id)
Construct a new StopWatch with the given ID.

Method

TaskInfogetLastTaskInfo()
Get the last task as a TaskInfo object.
StringgetLastTaskName()
Get the name of the last task.
longgetLastTaskTimeMillis()
Get the time taken by the last task in milliseconds.
longgetTotalTimeMillis()
Get the total time in milliseconds for all tasks.
doublegetTotalTimeSeconds()
Get the total time in seconds for all tasks.
booleanisRunning()
Determine whether this StopWatch is currently running.
StringprettyPrint()
Generate a string with a table describing all tasks performed.
StringshortSummary()
Get a short description of the total running time.
voidstart()
Start an unnamed task.
voidstart(String taskName)
Start a named task.
voidstop()
Stop the current task.
StringtoString()
Generate an informative string describing all tasks performed

For custom reporting, call #getTaskInfo() and use the task info directly.