1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use mach_absolute_time() to get time on iOS.

This commit is contained in:
Bartosz Taudul
2019-02-21 14:45:13 +01:00
parent e839a3153f
commit 44009b6fda
3 changed files with 21 additions and 8 deletions
+5 -1
View File
@@ -20,6 +20,10 @@
#include "common/TracyQueue.hpp"
#ifdef __APPLE__
# include <TargetConditionals.h>
#endif
namespace tracy
{
#ifdef _WIN32
@@ -52,7 +56,7 @@ namespace tracy
std::atomic<uint8_t>& GetGpuCtxCounter() { return GetGpuCtxCounter_fpt(); }
GpuCtxWrapper& GetGpuCtx() { return GetGpuCtx_fpt(); }
#if defined TRACY_HW_TIMER && __ARM_ARCH >= 6
#if defined TRACY_HW_TIMER && __ARM_ARCH >= 6 && !defined TARGET_OS_IOS
DLL_IMPORT int64_t(*get_GetTimeImpl())();
int64_t(*GetTimeImpl)() = get_GetTimeImpl();