> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: September 18, 2012 7:31 AM
> To: [email protected]
> Subject: [Possible Spam]Php programmer
>
> Hi,
>
> I need help, I'm working on a project that need time query in Mysql. I
want
> to display a time in php page, that took mysql to execute 100 000 records
> Sent from my BlackBerryR wireless device
> -
> S naMlgi
> oltrishp/s.s.mylTuucb t/isylomq
>
Taken from the PHP website:
<?php
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
# do your query here
$time_end = microtime_float();
$time = $time_end - $time_start;
echo "It took $time seconds to do whatever you just did\n";
?>
Steve.
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql