summaryrefslogtreecommitdiff
path: root/win32/time.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2004-01-13 02:07:04 +0000
committerWez Furlong <wez@php.net>2004-01-13 02:07:04 +0000
commit848684fa96cdee7f09f171edfa7f9a758baad7fa (patch)
tree8eaaeefea977662f49ba33fd7cad392ca67aac33 /win32/time.c
parent24f5ca6ab58cdc024aaa80cfd304431632bcd087 (diff)
downloadphp-git-848684fa96cdee7f09f171edfa7f9a758baad7fa.tar.gz
make usleep actually work properly
Diffstat (limited to 'win32/time.c')
-rw-r--r--win32/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/time.c b/win32/time.c
index 7edc2a5d3a..9a3e004a4d 100644
--- a/win32/time.c
+++ b/win32/time.c
@@ -136,9 +136,9 @@ void usleep(unsigned int useconds)
HANDLE timer;
LARGE_INTEGER due;
- due.QuadPart = -1000 * useconds;
- timer = CreateWaitableTimer(NULL, TRUE, NULL);
+ due.QuadPart = -(10 * (__int64)useconds);
+ timer = CreateWaitableTimer(NULL, TRUE, NULL);
SetWaitableTimer(timer, &due, 0, NULL, NULL, 0);
WaitForSingleObject(timer, INFINITE);
CloseHandle(timer);