openblocks/core/src/timeutil.h

12 lines
No EOL
261 B
C++

#pragma once
#include <cstdint>
typedef uint64_t tu_time_t;
// Provides a high-accuracy time since the program started in microseconds (via std::chrono)
tu_time_t tu_clock_micros();
#ifdef TU_TIME_EXPOSE_TEST
void tu_set_override(tu_time_t destTime);
#endif