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:
parent
67bd64d35f
commit
f20e5b4135
1 changed files with 11 additions and 0 deletions
|
@ -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, ...)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue