mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-06 18:50:52 +05:00
Merge 2108e17329514441278316917aede033abf9a633 into a9e8f2a1c9df7363710aa6213eca608c0bcc71ec
This commit is contained in:
commit
0ce6df87f4
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user