[UPHPU] Using php to get page load time
Nathan Lane
nathamberlane at gmail.com
Tue Apr 8 15:47:01 MDT 2008
Okay sweet. Can anybody tell me which version of microtime() goes back to,
i.e. is it valid in PHP 4?
You will need to call microtime() at the beginning and end then subtract
>
> $startTime = microtime(true);
>
> doSomething():
>
> $executionTime = microtime(true) - $startTime;
>
> echo "Page Generated In $executionTime Seconds";
>
> --
>
> Sean Thayne,
> Exit12
More information about the UPHPU
mailing list