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
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
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