diff options
Diffstat (limited to 'src/systemtime.c')
-rw-r--r-- | src/systemtime.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/systemtime.c b/src/systemtime.c index 84106c5..0d0cb85 100644 --- a/src/systemtime.c +++ b/src/systemtime.c @@ -68,3 +68,14 @@ systemtime_get_time(double *t) return 0; } + +/* Sleep for a number of milliseconds. */ +void +systemtime_msleep(unsigned int msecs) +{ +#ifndef _WIN32 + usleep(msecs*1000); +#else + Sleep(msecs); +#endif +} |