How could I measure the time taken to load a page (with various different PHP statements)?
Somewhat like the stats available here - http://talks.php.net/show/drupal08/24
Put the following code at the top of your PHP page.
The following code has to be put at the end of your page.
Note: If you measure the time for particular part of the code put this right start and last PHP code part.