RE: [PHP] please help.

From: Date: Wed, 18 Jul 2001 16:31:09 +0000
Subject: RE: [PHP] please help.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58471@lists.php.net to get a copy of this message
try using the attached class. <? $time = new timer; $time->start(); // some code $time->stop(); $total = $time->gettime(); echo $total; ?> -----Original Message----- From: McShen [mailto:hshen@crosswinds.net] Sent: Wednesday, July 18, 2001 11:08 AM To: php-general@lists.php.net Subject: [PHP] please help. hi I wanna see how long my scripts load. So, i copied this script from phpbuilder ------- <?php $timeparts = explode(" ",microtime()); $starttime = $timeparts[1].substr($timeparts[0],1); $timeparts = explode(" ",microtime()); $endtime = $timeparts[1].substr($timeparts[0],1); echo bcsub($endtime,$starttime,6) ?> ---------- But i am not sure where to put that part. Can i put it anywhere within my script? And bcsub() is not install on my server. What other fuctions can i use? can i just use $endtime-$starttime? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#58471) next »