From f20e5b4135c53cd731cd9d4582973797bcbb6b58 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 26 Dec 2014 11:47:25 +0000 Subject: [PATCH] add missing function. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4807 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/nacl/sys_ppapi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engine/nacl/sys_ppapi.c b/engine/nacl/sys_ppapi.c index ea660fd74..6825c7e97 100644 --- a/engine/nacl/sys_ppapi.c +++ b/engine/nacl/sys_ppapi.c @@ -189,6 +189,17 @@ qboolean Sys_GetDesktopParameters(int *width, int *height, int *bpp, int *refres return false; } +void Sys_Sleep (double seconds) +{ + struct timespec ts; + + ts.tv_sec = (time_t)seconds; + seconds -= ts.tv_sec; + ts.tv_nsec = seconds * 1000000000.0; + + nanosleep(&ts, NULL); +} + // an error will cause the entire program to exit NORETURN void VARGS Sys_Error (const char *error, ...) {