RE: [PHP-DB] timer

2002-06-11 Thread Ryan Jameson (USA)
1:22 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] timer Just set one variable $var1=time(); before you call mysql_query and then subtract it from time(); after the query. That will be the number of seconds. If you need better precision you can use milliseconds too: $t1 = getmicrotime(); $re

RE: [PHP-DB] timer

2002-06-11 Thread Ryan Jameson (USA)
Just set one variable $var1=time(); before you call mysql_query and then subtract it from time(); after the query. That will be the number of seconds. If you need better precision you can use milliseconds too: $t1 = getmicrotime(); $result_query = mysql_query($query_prism); echo "Execution Time

RE: [PHP-DB] timer

2002-06-11 Thread Leotta, Natalie (NCI/IMS)
You could probably use: $start = time(); //run query $end = time(); and then compare start and end. I don't know how time() formats the time, but that's probably on PHP.net. -Natalie -Original Message- From: Natividad Castro [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 1:2