Class Timed.TimedResult<T>

java.lang.Object
com.helixframework.time.Timed.TimedResult<T>
Type Parameters:
T - return type of the wrapped function
Enclosing class:
Timed

public static class Timed.TimedResult<T> extends Object
Timing result returned from the wrapped function.
  • Constructor Details

    • TimedResult

      public TimedResult(T result, long duration)
      Creaates a new Timed.TimedResult.
      Parameters:
      result - result of the wrapped function
      duration - execution time in milliseconds
  • Method Details

    • getResult

      public T getResult()
      Result of the wrapped function.
      Returns:
      result of the wrapped function
    • getDuration

      public long getDuration()
      Duration of the wrapped function execution in milliseconds.
      Returns:
      execution time in milliseconds