This Assignments Creating for Count the total time for page Generation.
You probably wonder how much time is needed for your PHP page to load. It can be crucial for your web server if your php scripts load slow and take most of the CPU and RAM resources. It is also a good idea to measure parts of your PHP code which can cause delays such as for/while cycles, writing/reading to/from files or MySQL database.
Using microtime() PHP function you will know exactly how much time is needed for your PHP code to be executed. Follow the steps below to put the PHP code on your web page:
Put the following code at the very top of your PHP page (if you measure the time needed for particular part of the code put this right before that PHP code part)
Here We are Attaching php file for helping the code for PHP Load page.