Re: How can i calculate total process time?

From: Date: Tue, 15 Mar 2005 15:08:31 +0000
Subject: Re: How can i calculate total process time?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210788@lists.php.net to get a copy of this message
> Hi, i wanna ask if anybody knows how to calculate the total process > time of a script. I guess there exists a > function to perform but i dont know which one it is. I mean if u c any > PHP Nuke site, it says this page is produced in .... seconds. I made > some codes it calculates but i dont believe that it is equal to total process > time.. Thanx.. // At the very beginning of the script $startTime = date( 'U' ); // At the very end of the script $endTime = date( 'U' ); echo 'Total processing time: ' . ( $endTime - $startTime ) . ' second(s)'; thnx, Chris

« previous php.general (#210788) next »