1
0
Fork 0
forked from fte/fteqw

add missing function.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4807 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-12-26 11:47:25 +00:00
parent 67bd64d35f
commit f20e5b4135

View file

@ -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, ...)
{