Package com.vmware.aria.operations
Class Timing
-
- All Implemented Interfaces:
public final class Timing
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Ttime(String name, ThrowingFn<T> fn)Times the function / closure. final static Stringgraph()Graphs all the Timers that have been started since program start, or the last invocation of clearTimers. final static UnitclearTimers()Clears all currently running and stopped timers. -
-
Method Detail
-
time
final static <T extends Any> T time(String name, ThrowingFn<T> fn)
Times the function / closure. The time is not returned but can be graphed using the graph function.
- Parameters:
name- The name for this timerfn- The function or closure to time- Returns:
The result of fn
-
graph
final static String graph()
Graphs all the Timers that have been started since program start, or the last invocation of clearTimers.
-
clearTimers
final static Unit clearTimers()
Clears all currently running and stopped timers. Use this to start a new timing graph.
-
-
-
-