AndreLuisRomero
AndreLuisRomero

Reputation: 67

How can I get time of render page waste using Framework CodeIgniter?

How can I get time of render page waste using [framework] [codeigniter]?

Upvotes: 0

Views: 56

Answers (1)

Hasta Dhana
Hasta Dhana

Reputation: 4719

CodeIgniter has a built-in pseudo-variable elapsed_time from the Benchmarking Class. You could use it within the view file :

<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds.</p>

Just like in the default welcome_message.php view file.

Upvotes: 1

Related Questions