fix timings

This commit is contained in:
Matthias Hochsteger 2020-12-04 16:37:27 +01:00
parent e545cfbbda
commit ec21cc3762

View File

@ -7,6 +7,7 @@
#include <ostream> #include <ostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <mach/mach_time.h>
/* /*
#ifdef WIN32 #ifdef WIN32
@ -54,9 +55,11 @@ namespace ngcore
inline TTimePoint GetTimeCounter() noexcept inline TTimePoint GetTimeCounter() noexcept
{ {
return mach_absolute_time();
// return __builtin_readcyclecounter();
// return TTimePoint(__rdtsc()); // return TTimePoint(__rdtsc());
// return TTimePoint(__builtin_readcyclecounter()); // return TTimePoint(__builtin_readcyclecounter());
return TTimePoint(0); // return TTimePoint(0);
} }
template <class T> template <class T>