Merge 2108e17329514441278316917aede033abf9a633 into 12ef984e9316f3480780f21a9572ed6ef773764e

This commit is contained in:
Sergey Fedorov 2025-03-29 23:10:40 +00:00 committed by GitHub
commit 8cedc49ad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@
#include "ngcore_api.hpp" // for NGCORE_API and CPU arch macros #include "ngcore_api.hpp" // for NGCORE_API and CPU arch macros
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64) #if defined(__APPLE__) && !defined(NETGEN_ARCH_AMD64)
#include <mach/mach_time.h> #include <mach/mach_time.h>
#endif #endif
@ -63,7 +63,7 @@ namespace ngcore
inline TTimePoint GetTimeCounter() noexcept inline TTimePoint GetTimeCounter() noexcept
{ {
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64) #if defined(__APPLE__) && !defined(NETGEN_ARCH_AMD64)
return mach_absolute_time(); return mach_absolute_time();
#elif defined(NETGEN_ARCH_AMD64) #elif defined(NETGEN_ARCH_AMD64)
return __rdtsc(); return __rdtsc();