Package org.springframework.util
Class StopWatch.TaskInfo
- java.lang.Object
- org.springframework.util.StopWatch.TaskInfo
- Enclosing class:
- StopWatch
public static final class StopWatch.TaskInfo extends Object
Nested class to hold data about one task executed within theStopWatch
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTaskName()
Get the name of this task.long
getTimeMillis()
Get the time in milliseconds this task took.long
getTimeNanos()
Get the time in nanoseconds this task took.double
getTimeSeconds()
Get the time in seconds this task took.
Method Detail
getTaskName
public String 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()
,getTimeSeconds()
getTimeMillis
public long getTimeMillis()
Get the time in milliseconds this task took.- See Also:
getTimeNanos()
,getTimeSeconds()
getTimeSeconds
public double getTimeSeconds()
Get the time in seconds this task took.- See Also:
getTimeMillis()
,getTimeNanos()