PHP 4.0 Bug #8932 Updated: gettimeofday improvement suggestion
| From: | jmoore@php.net | Date: | Sun, 04 Feb 2001 15:56:16 +0000 |
| Subject: | PHP 4.0 Bug #8932 Updated: gettimeofday improvement suggestion | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45727@lists.php.net to get a copy of this message | ||
ID: 8932
Updated by: jmoore
Reported By: reijo.vanhanen@helsoft.fi
Old-Status: Open
Status: Closed
Bug Type: Date/time related
Assigned To:
Comments:
Thanks for you patch, it is now in the CVS. In future make sure you also include any patches in the
bug report (even if its a note added at a later date)
Previous Comments:
---------------------------------------------------------------------------
[2001-01-29 09:04:44] reijo.vanhanen@helsoft.fi
I have a solution for this now, also for microtime
and usleep. How can I get the code to appropriate
place ??
---------------------------------------------------------------------------
[2001-01-26 08:13:53] reijo.vanhanen@helsoft.fi
As implemented now, win32 gettimeofday does not give a consistent time because seconds and
microseconds are collected with two different function calls.
A better solution, in my opinion, would be to use
win32 GetSystemTime function (together with mktime). This reduces accuracy to milliseconds, but time
differences would be more reliable (no more extra 1 second errors in small times)
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8932&edit=2