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 Summary
Modifier and TypeMethodDescriptionGet the name of this task.double
Get the time this task took in the requested time unit (with decimal points in nanosecond precision).long
Get the time this task took in milliseconds.long
Get the time this task took in nanoseconds.double
Get the time this task took in seconds.
-
Method Details
-
getTaskName
Get the name of this task. -
getTimeNanos
public long getTimeNanos()Get the time this task took in nanoseconds.- Since:
- 5.2
- See Also:
-
getTimeMillis
public long getTimeMillis()Get the time this task took in milliseconds.- See Also:
-
getTimeSeconds
public double getTimeSeconds()Get the time this task took in seconds.- See Also:
-
getTime
Get 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:
-