类 StopWatch.TaskInfo

java.lang.Object
cn.taketoday.util.StopWatch.TaskInfo
封闭类:
StopWatch

public static final class StopWatch.TaskInfo extends Object
Nested class to hold data about one task executed within the StopWatch.
  • 字段详细资料

    • timeNanos

      private final long timeNanos
    • taskName

      private final String taskName
  • 构造器详细资料

    • TaskInfo

      TaskInfo(String taskName, long timeNanos)
  • 方法详细资料

    • getTaskName

      public String 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

      public double getTime(TimeUnit timeUnit)
      Get the time this task took in the requested time unit (with decimal points in nanosecond precision).
      参数:
      timeUnit - the unit to use
      另请参阅: