Synopsis Functions for time measurement and benchmarking.
Usage import util::Benchmark;
Description The
Benchmark
library provides the following functions:
- benchmark: Measure and report the execution time of name:void-closure pairs
- cpuTime: CPU time in nanoseconds (10
-9
sec).
- gc: Force a garbage collection.
- getMilliTime: Current time in milliseconds (10
-3
sec) since January 1, 1970 GMT.
- getNanoTime: Current time in nanoseconds (10
-9
sec) since January 1, 1970 GMT.
- realTime: Current time in milliseconds (10
-3
sec).
- systemTime: System time in nanoseconds (10
-9
sec).
- userTime: User time in nanoseconds (10
-9
sec).