Re: [PHP4BETA] getting execution time of a script

From: Date: Tue, 22 Feb 2000 17:14:15 +0000
Subject: Re: [PHP4BETA] getting execution time of a script
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10654@lists.php.net to get a copy of this message
<? $start = gettimeofday(); // do all php code you want $end = gettimeofday(); echo "Script took "; echo number_format( (($end["sec"] + $end["usec"]/1000000) - ($start["sec"] + $start["usec"]/1000000)), 3); echo " seconds.</font>"; ?> Allen Lee Assistant Sysadmin http://MissoulaWeb.com Hosting, Programming and Design On Tue, 22 Feb 2000, Matthew Hixson wrote: > Is there any way for me to include in an html comment the time it took for the > PHP script to run? > Thanks, > -M@ >

« previous php.version4 (#10654) next »