openMSX
Timer.hh
Go to the documentation of this file.
1 #ifndef TIMER_HH
2 #define TIMER_HH
3 
4 #include <cstdint>
5 
6 namespace openmsx {
7 namespace Timer {
8 
11  uint64_t getTime();
12 
16  void sleep(uint64_t us);
17 
18 } // namespace Timer
19 } // namespace openmsx
20 
21 #endif
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
void sleep(uint64_t us)
Sleep for the specified amount of time (in us).
Definition: Timer.cc:29
uint64_t getTime()
Get current (real) time in us.
Definition: Timer.cc:8