Jump to content

Log php processing time


Recommended Posts

I want to log the time taken to serve a Prestashop PHP page e.g. search.php.

$start = utime();

//Put this at the end of page
call to search.php

$end = utime();
$run = $end - $start;

I want to avoid putting this code in each page. Is there a way to put this code at one place and then delegate the call to the called page?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More