forked from billortell/Dingo-Framework
Benchmark
adampatterson edited this page Sep 25, 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();