Welcome Guest, Not a member yet? Register   Sign In
benchmarking request between index.php and other controllers

in Ci3 can I place:

PHP Code:

in the "index.php" page, so I start my benchmark the moment the request gets in. Then at the target controller (in the function of interest) i will place the rest:

PHP Code:
echo $this->benchmark->elapsed_time('code_start''code_end'); 

Will that be accurate, do I need to load, pre-load? any ideas on this?

Thx guys.


Looks like you using it correctly. I can't think of anything else to add.

Theme © iAndrew 2016 - Forum software by © MyBB