master82 Posted September 5, 2006 Share Posted September 5, 2006 Is it possible to display how long it took the server to preform a page calculation?On some sites you see a little bit of text stating:This page was loaded in X.XXmsor Page calculated in X.XXmsetc...How would I go about doing this? Link to comment https://forums.phpfreaks.com/topic/19804-page-speed-calculation/ Share on other sites More sharing options...
ober Posted September 5, 2006 Share Posted September 5, 2006 PHP 4 or 5? It's different.http://www.php.net/microtime Link to comment https://forums.phpfreaks.com/topic/19804-page-speed-calculation/#findComment-86624 Share on other sites More sharing options...
master82 Posted September 5, 2006 Author Share Posted September 5, 2006 Both please lol Link to comment https://forums.phpfreaks.com/topic/19804-page-speed-calculation/#findComment-86625 Share on other sites More sharing options...
Stevis2002 Posted September 5, 2006 Share Posted September 5, 2006 [code]<?php$time_start = microtime(true);// Sleep for a whileusleep(100);$time_end = microtime(true);$time = $time_end - $time_start;echo "Did nothing in $time seconds\n";?>[/code]PHP5 Link to comment https://forums.phpfreaks.com/topic/19804-page-speed-calculation/#findComment-86631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.