...

View Full Version : Speed check



qazs
09-18-2005, 08:16 AM
Hi,
Is there a script to check for the retrieval speed of a page? I just want to know
the speed so I can optimize my code.

Thanks.

pjleonhardt
09-18-2005, 08:20 AM
You could do...



$startime = microtime();

at the start of your code
and



$endtime = microtime();
$totaltime = $endtime-$startime;


This will give you the time it took the script to run in microseconds.

Is that what you're looking for?

qazs
09-18-2005, 08:28 AM
Hey thanks!
Looks promising. Does this includes the time taken to connect to a database, retrieve the result and back?

The Doc
09-18-2005, 10:21 AM
yes, it does



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum