List:General Discussion« Previous MessageNext Message »
From:Steven Staples Date:September 18 2012 1:08pm
Subject:RE: [Possible Spam]Php programmer
View as plain text  
> -----Original Message-----
> From: ratlhaganam@stripped [mailto:ratlhaganam@stripped]
> Sent: September 18, 2012 7:31 AM
> To: mysql@stripped
> 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.

Thread
RE: [Possible Spam]Php programmerSteven Staples18 Sep