The closest I know of is using microtime at the start and end of a piece of
code to see how long it took.
You'll want to run the script through a loop, usually around 10 times at
least if it's not a big script, and then average together 10 tests.
--
Plutarck
Should be working on something...
...but forgot what it was.
""Brian Hardwick"" <[EMAIL PROTECTED]> wrote in message
000501c0bcb1$130f7fb0$0200a8c0@brianslaptop">news:000501c0bcb1$130f7fb0$0200a8c0@brianslaptop...
> Im trying to optimize some php/mysql code. Does anyone know a way to
> measure the amount cpu time a php script consumes?
>
> - Brian Hardwick
> Tangible Networks
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]