How to do in php the time take to load a page, like for example
php process this page in $time seconds
Pleas Help Thanks
php process this page in $time seconds
Pleas Help Thanks
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Useful Links for Guests:
If you are having problems posting in the relevant areas for your software, please see this topic.
<?php
$pagestarttime=microtime();
$pageendtime=microtime();
$starttime=explode(" ",$pagestarttime);
$endtime=explode(" ",$pageendtime);
$totaltime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
?>
$mtime = microtime();
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
printf('<div align="center">PHP Processes This Page In %f seconds.</div>', $mtime);
Comment