PHP 4.0 Bug #8932: gettimeofday improvement suggestion
| From: | reijo dot vanhanen at helsoft dot fi | Date: | Fri, 26 Jan 2001 13:13:53 +0000 |
| Subject: | PHP 4.0 Bug #8932: gettimeofday improvement suggestion | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45056@lists.php.net to get a copy of this message | ||
From: reijo.vanhanen@helsoft.fi
Operating system: W2K
PHP version: 4.0.4
PHP Bug Type: Date/time related
Bug description: gettimeofday improvement suggestion
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)
--
Edit Bug report at: http://bugs.php.net/?id=8932&edit=1