Page execution time PHP
Last day we show how to count your Sql queries on PHP. Today we do 1 step more in your app to know how long does it takes to be executed in the server (just to return the html to the browser).
This is kind of important, at least to me to see that everything is going as expected.
I will show you one way of doing this, really easy!
On the start of your code paste this:
$start_time=microtime(true);
Then all your code, html php etc…
In the footer of your html you can display it like this:
echo "Total exectution time:".round((microtime(true)-$start_time),3);
I mean this is really simple….but useful, or not? ;)
Related Posts- Setting up Firewall in Linux
- Cache expire Headers in PHP
- Banned sites with Squid proxy
- Hello world!
- webLab - Create your own php-html lab
- Blog Copyright
- A login system with PHP and MySQL
- Showstoppin' 3
- Embed a Youtube video in Wordpress blog in 5 steps
- Bushnell Tour V2 Series Pinseeker Rangefinder
Help sharing and Flatter me ;)
