[PHP-DEV] PHP 4.0 Bug #8932: gettimeofday improvement suggestion From: reijo.vanhanen <email protected>
Date: 01/26/01

From: reijo.vanhanen <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>