92 uint64_t time_stamp = 0;
94 #if defined(USE_CLOCK_GETTIME)
97 struct timespec clock;
98 if (clock_gettime(CLOCK_REALTIME, &clock) == -1)
105 time_stamp = clock.tv_sec * 1e9 + clock.tv_nsec;
107 #elif defined(USE_QUERY_PERFORMANCE_COUNTER)
111 if (!QueryPerformanceCounter(&ticks))
117 time_stamp =
static_cast<uint64_t
>(ticks.QuadPart);
128 time_stamp =
static_cast<uint64_t
>(std::time(0)) +
129 static_cast<uint64_t
>(std::clock());