Re: Script Execution Time

From: Date: Tue, 29 Jul 2003 00:00:10 +0000
Subject: Re: Script Execution Time
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157256@lists.php.net to get a copy of this message
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

« previous php.general (#157256) next »