Merge 2108e17329514441278316917aede033abf9a633 into a9e8f2a1c9df7363710aa6213eca608c0bcc71ec

This commit is contained in:
Sergey Fedorov 2025-05-04 22:33:56 +00:00 committed by GitHub
commit 0ce6df87f4
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
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64)
#if defined(__APPLE__) && !defined(NETGEN_ARCH_AMD64)
#include <mach/mach_time.h>
#endif
@ -63,7 +63,7 @@ namespace ngcore
inline TTimePoint GetTimeCounter() noexcept
{
#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64)
#if defined(__APPLE__) && !defined(NETGEN_ARCH_AMD64)
return mach_absolute_time();
#elif defined(NETGEN_ARCH_AMD64)
return __rdtsc();