struct _timeb timebuffer;
CURRENT_TIME.tv_sec = timebuffer.time;
CURRENT_TIME.tv_nsec = timebuffer.millitm * 1000000
int main(int argc,char **argv)
liDueTime.QuadPart = -10000 * maxval(common_ticktime__,1);;
// Create a waitable timer.
hTimer = CreateWaitableTimer(NULL, TRUE, "WaitableTimer");
printf("CreateWaitableTimer failed (%d)\n", GetLastError());
// Set a timer to wait for 10 seconds.
if (!SetWaitableTimer(hTimer, &liDueTime, common_ticktime__, NULL, NULL, 0))
printf("SetWaitableTimer failed (%d)\n", GetLastError());
if (WaitForSingleObject(hTimer, INFINITE) != WAIT_OBJECT_0)
printf("WaitForSingleObject failed (%d)\n", GetLastError());