-
Notifications
You must be signed in to change notification settings - Fork 3
Benchmark
Adam Patterson edited this page Dec 18, 2012
·
1 revision
The benchmark helper simplifies basic time-based benchmarking. To load the benchmark helper manually you may do this:
load::library('benchmark');
bench::mark('start');
// Do something...
bench::mark('mid');
// Something else...
bench::mark('end');
echo bench::time('mid','end');
The above would display the elapsed time between the mid and end marks in milliseconds.
Cleans out all bench markers.
bench::clear();