roswrap
helper_win
usleep
usleep.c
Go to the documentation of this file.
1
#include <windows.h>
2
3
void
usleep
(__int64 usec)
4
{
5
HANDLE timer;
6
LARGE_INTEGER ft;
7
8
ft.QuadPart = -(10*usec);
// Convert to 100 nanosecond interval, negative value indicates relative time
9
10
timer = CreateWaitableTimer(
NULL
, TRUE,
NULL
);
11
SetWaitableTimer(timer, &ft, 0,
NULL
,
NULL
, 0);
12
WaitForSingleObject(timer, INFINITE);
13
CloseHandle(timer);
14
}
NULL
#define NULL
usleep
void usleep(__int64 usec)
Definition:
usleep.c:3
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof
, Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13