X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos.hpp;h=7f624517432838f1a8fd38515cbf0c871b15af6d;hb=1242ab5cbdc409e2fc2d787edc28c6ac2a8439d1;hp=6a3b8c82f33840929b688de60ceb6f69fe9901b7;hpb=0a41c9bdd4b2eb1dfc94832d02417f86dbb78d00;p=apitrace diff --git a/common/os.hpp b/common/os.hpp index 6a3b8c8..7f62451 100644 --- a/common/os.hpp +++ b/common/os.hpp @@ -46,10 +46,6 @@ namespace os { -void acquireMutex(void); - -void releaseMutex(void); - void log(const char *format, ...) #ifdef __GNUC__ __attribute__ ((format (printf, 1, 2))) @@ -74,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);