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.longGet the time in milliseconds this task took.longGet the time in nanoseconds this task took.doubleGet the time in seconds this task took.
-
Method Details
-
getTaskName
Get the name of this task. -
getTimeNanos
public long getTimeNanos()Get the time in nanoseconds this task took.- Since:
- 5.2
- See Also:
-
getTimeMillis
public long getTimeMillis()Get the time in milliseconds this task took.- See Also:
-
getTimeSeconds
public double getTimeSeconds()Get the time in seconds this task took.- See Also:
-