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 the StopWatch.
  • Method Details

    • getTaskName

      public String getTaskName()
      Get the name of this task.
    • getTimeNanos

      public long getTimeNanos()
      Get the time this task took in nanoseconds.
      Since:
      5.2
      See Also:
    • getTimeMillis

      public long getTimeMillis()
      Get the time this task took in milliseconds.
      See Also:
    • getTimeSeconds

      public double getTimeSeconds()
      Get the time this task took in seconds.
      See Also:
    • getTime

      public double getTime(TimeUnit timeUnit)
      Get the time this task took in the requested time unit (with decimal points in nanosecond precision).
      Parameters:
      timeUnit - the unit to use
      Since:
      6.1
      See Also: