Package org.springframework.util
Class StopWatch.TaskInfo
java.lang.Object
org.springframework.util.StopWatch.TaskInfo
- Enclosing class:
- StopWatch
Nested class to hold data about one task executed within the 
StopWatch.- 
Method SummaryModifier and TypeMethodDescriptionGet the name of this task.doubleGet the time this task took in the requested time unit (with decimal points in nanosecond precision).longGet the time this task took in milliseconds.longGet the time this task took in nanoseconds.doubleGet the time this task took in seconds.
- 
Method Details- 
getTaskNameGet the name of this task.
- 
getTimeNanospublic long getTimeNanos()Get the time this task took in nanoseconds.- Since:
- 5.2
- See Also:
 
- 
getTimeMillispublic long getTimeMillis()Get the time this task took in milliseconds.- See Also:
 
- 
getTimeSecondspublic double getTimeSeconds()Get the time this task took in seconds.- See Also:
 
- 
getTimeGet the time this task took in the requested time unit (with decimal points in nanosecond precision).- Parameters:
- timeUnit- the unit to use
- Since:
- 6.1
- See Also:
 
 
-