26 GetSystemTimeAsFileTime(&
t);
29 #if defined(__APPLE__) 32 gettimeofday(&tv,
nullptr);
33 tim.tv_sec = tv.tv_sec;
34 tim.tv_nsec = tv.tv_usec * 1000;
37 clock_gettime(CLOCK_REALTIME, &tim);
41 return uint64_t(tim.tv_sec) * UINT64_C(10000000) +
42 UINT64_C(116444736) * UINT64_C(1000000000) + tim.tv_nsec / 100;
54 uint64_t(
t * 10000000.0) + UINT64_C(116444736) * UINT64_C(1000000000)));
std::chrono::duration< rep, period > duration
static time_point fromDouble(const double t) noexcept
Create a timestamp from its double representation.
std::chrono::time_point< Clock > time_point
static time_point now() noexcept
Returns the current time, with the highest resolution available.
static uint64_t getCurrentTime()
unsigned __int64 uint64_t