24 #if defined(_WIN32) || defined(WIN32) 37 #if defined(_WIN32) || defined(WIN32) 38 Sleep(useconds / 1000);
40 const time_t
m = 1000000;
41 const struct timespec t = { useconds /
m, (useconds %
m) * 1000 };
42 ::nanosleep(&t,
nullptr);
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Definition: GnashKey.h:159
void gnashSleep(time_t useconds)
Sleep compatibly for the specified number of microseconds.
Definition: GnashSleep.h:35