]> git.cworth.org Git - apitrace/blobdiff - common/os.hpp
Android: add support for dynamically enable/disable tracing
[apitrace] / common / os.hpp
index caf9dc3d2cc66e4243d819571beaf1082c7bd723..7f624517432838f1a8fd38515cbf0c871b15af6d 100644 (file)
@@ -70,10 +70,14 @@ void log(const char *format, ...)
   #endif
 #endif
 
-/**
- * Get the current time in microseconds from an unknown base.
- */
-long long getTime(void);
+#ifdef ANDROID
+bool apitrace_enabled(void);
+#else
+static inline bool apitrace_enabled(void)
+{
+    return true;
+}
+#endif
 
 void abort(void);