]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys.h
added convenience function Sys_TimeString which calls strftime into a temporary buffe...
[xonotic/darkplaces.git] / sys.h
diff --git a/sys.h b/sys.h
index 6b38df3ebd361e1eb395e5400acf25f783f2b8d8..689f2b93f03cc4e6c8586db64204a3ce7d0aa7f6 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -55,10 +55,11 @@ void* Sys_GetProcAddress (dllhandle_t handle, const char* name);
 void Sys_Error (const char *error, ...);
 // an error will cause the entire program to exit
 
-void Sys_Printf (const char *fmt, ...);
+void Sys_Print(const char *msg);
+void Sys_Printf(const char *fmt, ...);
 // send text to the quake console (and possibly to terminal)
 
-void Sys_Print(const char *text);
+void Sys_PrintToTerminal(const char *text);
 // (may) output text to terminal which launched program
 
 void Sys_Quit (void);
@@ -67,7 +68,7 @@ double Sys_DoubleTime (void);
 
 char *Sys_ConsoleInput (void);
 
-void Sys_Sleep (void);
+void Sys_Sleep(int milliseconds);
 // called to yield for a little bit so as
 // not to hog cpu when paused or debugging
 
@@ -79,5 +80,8 @@ void Sys_Shared_EarlyInit (void);
 // called after Host_init
 void Sys_Shared_LateInit (void);
 
+// returns current timestamp
+char *Sys_TimeString(const char *timeformat);
+
 #endif