21 #if defined(FRONTEND) || !defined(WIN32)
46 struct timespec delay;
48 delay.tv_sec = microsec / 1000000L;
49 delay.tv_nsec = (microsec % 1000000L) * 1000;
50 (void) nanosleep(&delay, NULL);
52 SleepEx((microsec < 500 ? 1 : (microsec + 500) / 1000), FALSE);
void pg_usleep(long microsec)