void TimerQueue::Add(Timer &timer, uint64_t due_us) { timers.insert(TimerRecord(timer, due_us)); }
void TimerQueue::Add(Timer &timer, std::chrono::steady_clock::time_point due) noexcept { timers.insert(TimerRecord(timer, due)); }
TimerRecord Timer::GetRecord() { uint64 record = 0; QueryPerformanceCounter(PLARGE_INTEGER(&record)); return TimerRecord(record); }