RE: [PHP] Script Execution Time

From: Date: Mon, 28 Jul 2003 23:50:04 +0000
Subject: RE: [PHP] Script Execution Time
Groups: php.general 
Request: Send a blank email to php-general+get-157255@lists.php.net to get a copy of this message
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.

« previous php.general (#157255) next »