mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
utils.hpp: use arch defines for Apple correctly
This commit is contained in:
parent
ec0f848030
commit
2108e17329
@ -11,7 +11,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
|
||||||
|
|
||||||
@ -62,7 +62,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();
|
||||||
|
Loading…
Reference in New Issue
Block a user