X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos.hpp;h=7f624517432838f1a8fd38515cbf0c871b15af6d;hb=1242ab5cbdc409e2fc2d787edc28c6ac2a8439d1;hp=caf9dc3d2cc66e4243d819571beaf1082c7bd723;hpb=0e47f66f21683a18f34282e07efa85cdac4fe0e0;p=apitrace diff --git a/common/os.hpp b/common/os.hpp index caf9dc3..7f62451 100644 --- a/common/os.hpp +++ b/common/os.hpp @@ -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);