PHP 4.0 Bug #8933 Updated: gettimeofday improvement suggestion
| From: | derick@php.net | Date: | Fri, 26 Jan 2001 21:01:40 +0000 |
| Subject: | PHP 4.0 Bug #8933 Updated: gettimeofday improvement suggestion | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45096@lists.php.net to get a copy of this message | ||
ID: 8933
Updated by: derick
Reported By: reijo.vanhanen@helsoft.fi
Old-Status: Open
Status: Bogus
Bug Type: Date/time related
Assigned To:
Comments:
Report summmitted 2 times
Previous Comments:
---------------------------------------------------------------------------
[2001-01-26 08:24:29] 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)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8933