Check Your Website Particular Section Execution Time In codeigniter

CodeIgniter has a Benchmarking class that is always active, enabling the time difference between any two marked points to be calculated.
For using the Benchmark Class you have to :
  1. Mark a start point
  2. Mark an end point
  3. Run the "elapsed time" function to view the results
Here's the example of the code

$this->benchmark->mark('code_start');

// Some code happens here

$this->benchmark->mark('code_end');

echo $this->benchmark->elapsed_time('code_start', 'code_end');

For reference please use thebelow link

https://ellislab.com/codeigniter/user-guide/libraries/benchmark.html

Comments

Popular posts from this blog

Enable the imap in support in xampp server