note 69788 deleted from function.gettimeofday by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 03:09:33 +0000 |
| Subject: | note 69788 deleted from function.gettimeofday by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142029@lists.php.net to get a copy of this message | ||
Note Submitter: void0( the dog )yandex.ru
----
do you realy think that convertion to String and back to float can be fast??
this function runs 10 times faster than utime() :
function fastUtime()
{
$t = gettimeofday();
return (float) ($t['sec'] + $t['usec'] / 1000000.0);
}