TetaTricks/code/C/hacks.txt

9 lines
225 B
Plaintext
Raw Normal View History

2024-03-11 12:20:47 +11:00
inline int
usleep(useconds_t microseconds)
{
struct timespec ts;
ts.tv_sec = microseconds / (useconds_t)1000000;
ts.tv_nsec = (long)(microseconds % (useconds_t)1000000) * 1000L;
return nanosleep(&ts, NULL);
}