mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-06 09:44:17 +05:00
fix timings
This commit is contained in:
parent
e545cfbbda
commit
ec21cc3762
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user