Petya A Shushpanov <mailto:[EMAIL PROTECTED]> on Monday, July 28, 2003 3:41 PM said:
> <?
> class jTimer {
[snip]
> }
> $timer = new jTimer;
> $timer->start();
>
> #your code here
>
> $timer->stop();
> echo round($timer->elapsed(),5);
You could one up this class by creating another method that
automatically performs the last line.
i.e.
$timer->stop();
$timer->report();
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

