]> git.cworth.org Git - apitrace/blobdiff - os.hpp
Use a map for uniform locations.
[apitrace] / os.hpp
diff --git a/os.hpp b/os.hpp
index 94d0cf3c4a6941907c70a827c20fe84014453517..eb5d842bc858b7ff40f773e7458f8dfb3e2ba714 100644 (file)
--- a/os.hpp
+++ b/os.hpp
  *
  **************************************************************************/
 
+/*
+ * Simple OS abstraction layer.
+ */
+
 #ifndef _OS_HPP_
 #define _OS_HPP_
 
+#include <stdlib.h>
+#include <stdarg.h>
+
 #ifdef WIN32
 #ifndef snprintf
 #define snprintf _snprintf
@@ -51,7 +58,12 @@ void ReleaseMutex(void);
 bool GetProcessName(char *str, size_t size);
 bool GetCurrentDir(char *str, size_t size);
 
-void DebugMessage(const char *str);
+void DebugMessage(const char *format, ...);
+
+/**
+ * Get the current time in microseconds from an unknown base.
+ */
+long long GetTime(void);
 
 void Abort(void);