]>
git.ipfire.org Git - thirdparty/squid.git/blob - lib/xusleep.c
2 #include "profiler/Profiler.h"
10 * xusleep, as usleep but accepts longer pauses
13 xusleep(unsigned int usec
)
15 /* XXX emulation of usleep() */
17 sl
.tv_sec
= usec
/ 1000000;
18 sl
.tv_usec
= usec
% 1000000;
19 return select(0, NULL
, NULL
, NULL
, &sl
);