This is a discussion on RE: [PHP] Script Execution Time within the PHP General forums, part of the PHP Programming Forums category; Petya A Shushpanov <mailto:shpa@eastof.ru> on Monday, July 28, 2003 3:41 PM said: > <? &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Petya A Shushpanov <mailto:shpa@eastof.ru>
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. |
|
|||
|
Tnx. I`ve it fixed jet.
----- Original Message ----- From: "Chris W. Parker" <cparker@swatgear.com> To: "Petya A Shushpanov" <shpa@eastof.ru>; "Radek Zajkowski" <radekz@rogers.com>; "PHP GENERAL" <php-general@lists.php.net> Sent: Tuesday, July 29, 2003 3:50 AM Subject: RE: [php] Script Execution Time Petya A Shushpanov <mailto:shpa@eastof.ru> 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 |