类 StopWatch.TaskInfo
java.lang.Object
cn.taketoday.util.StopWatch.TaskInfo
- 封闭类:
- StopWatch
Nested class to hold data about one task executed within the
StopWatch.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Get 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.
-
字段详细资料
-
timeNanos
private final long timeNanos -
taskName
-
-
构造器详细资料
-
TaskInfo
TaskInfo(String taskName, long timeNanos)
-
-
方法详细资料
-
getTaskName
Get the name of this task. -
getTimeNanos
public long getTimeNanos()Get the time this task took in nanoseconds.- 另请参阅:
-
getTimeMillis
public long getTimeMillis()Get the time this task took in milliseconds.- 另请参阅:
-
getTimeSeconds
public double getTimeSeconds()Get the time this task took in seconds.- 另请参阅:
-
getTime
Get the time this task took in the requested time unit (with decimal points in nanosecond precision).- 参数:
timeUnit- the unit to use- 另请参阅:
-