Description: Support non-x86 builds
Author: Kurt Kremitzki <kkremitzki@debian.org>
Last-Updated: 2020-11-19

--- a/libsrc/core/utils.hpp
+++ b/libsrc/core/utils.hpp
@@ -9,7 +9,9 @@
 
 #ifdef WIN32
 #include <intrin.h>   // for __rdtsc()  CPU time step counter
-#else
+#define NGCORE_HAVE_RDTSC
+#elif defined __SSE__
+#define NGCORE_HAVE_RDTSC
 #include <x86intrin.h>   // for __rdtsc()  CPU time step counter
 #endif // WIN32
 
@@ -47,7 +49,11 @@
 
   inline TTimePoint GetTimeCounter() noexcept
   {
-      return TTimePoint(__rdtsc());
+#ifdef NGCORE_HAVE_RDTSC
+    return TTimePoint(__rdtsc());
+#else // NGCORE_HAVE_RDTSC
+    return TTimePoint(std::chrono::steady_clock::now().time_since_epoch().count());
+#endif // NGCORE_HAVE_RDTSC
   }
 
   template <class T>
