Re: Date Calculation

From: Date: Fri, 29 Oct 2004 12:39:26 +0000
Subject: Re: Date Calculation
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-200621@lists.php.net to get a copy of this message
Wouldn't just making the script get 2 time stamps be more efficient, since you are creating the database calls anyways? Or am I over simplifying it? <?php // current time at start of script $before = strtotime("now"); //All your DB stuff { .... } // current time at end of script $after = strtotime("now"); $timed = ($after - $before); echo 'Time for script to execute: ' . $timed .' seconds'; ?> Robert <SNIP> Mike Tuller is quoted as saying on 10/28/2004 5:19 PM:
Ok, so here is what I have. Please check to see if there is a better way. There are a lot of database calls to me. </SNIP>
-- Robert Sossomon, Business and Technology Application Technician 4-H Youth Development Department 200 Ricks Hall, Campus Box 7606 N.C. State University Raleigh NC 27695-7606 Phone: 919/515-8474 Fax: 919/515-7812 robert_sossomon@ncsu.edu

« previous php.general (#200621) next »