psMicroTime() Micro Time - Float
Description:
This returns a float value of time in seconds with a decimal
Note: This function was coppied directly from the php site
http://php.net/manual/en/function.microtime.php
Usage:
$varFloat = psMicroTime();
Example:
<?php
$time_start = psMicroTime();
// Sleep for a while usleep(100);
$time_end = psMicroTime(); $time = $time_end - $time_start;
echo "Did nothing in $time seconds\n";
?>
Code:
function psMicroTime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); }
Changlelog:
|