Package com.helixframework.time
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
Timing result returned from the wrapped function.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongDuration of the wrapped function execution in milliseconds.Result of the wrapped function.
-
Constructor Details
-
TimedResult
Creaates a newTimed.TimedResult.- Parameters:
result- result of the wrapped functionduration- execution time in milliseconds
-
-
Method Details
-
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
-