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.
Since:
May 2, 2001
Author:
Rod Johnson, Juergen Hoeller, Sam Brannen
  • Method Details Link icon

    • getTaskName Link icon

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

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

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

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

      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: