类 StopWatch.TaskInfo
- java.lang.Object
- org.springframework.util.StopWatch.TaskInfo
- 封闭类:
- StopWatch
public static final class StopWatch.TaskInfo extends Object
Nested class to hold data about one task executed within theStopWatch
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
方法详细资料
getTaskName
public String getTaskName()
Get the name of this task.
getTimeNanos
public long getTimeNanos()
Get the time in nanoseconds this task took.- 从以下版本开始:
- 5.2
- 另请参阅:
getTimeMillis()
,getTimeSeconds()
getTimeMillis
public long getTimeMillis()
Get the time in milliseconds this task took.
getTimeSeconds
public double getTimeSeconds()
Get the time in seconds this task took.