NB: we now depend on windows 98 and later;
windows 95 does not have these timing functions.
/* Include stuff ************************************************************ */
+/* this allows the use of the WaitableTimer functions.
+ * For win98 and later */
+#define _WIN32_WINNT 0x400
+
#include "time.h"
#include "unistd.h"
#include "signal.h"
+#include <windows.h>
#include <winbase.h>
#include <mmsystem.h>
#include <errno.h>
HANDLE timer;
LARGE_INTEGER due;
- due.QuadPart = -useconds * 1000;
+ due.QuadPart = -1000 * useconds;
timer = CreateWaitableTimer(NULL, TRUE, NULL);
SetWaitableTimer(timer, &due, 0, NULL, NULL, 0);