Hi,
has anyone got a good script timer?
I wrote this function to time my scripts but wondered is anyone had something better?
Function timer() {
$milli = explode(" ", microtime());
$sec = substr($milli[1],7);
return str_replace("0.",$sec.".",$milli[0]);
}
The function returns something like 37.235.
I'm using it to compare it to an asp script but at the moment the php script on apache seems to run 2 times as fast as the asp script on iis 5.
Thanks,
Matt