OXYGENHUB
◆ main openmsx / src / thread / Timer.hh
403 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef TIMER_HH
2
#define TIMER_HH
3
4
#include <cstdint>
5
6
namespace openmsx::Timer {
7
8
	/** Get current (real) time in us. Absolute value has no meaning.
9
	  */
10
	[[nodiscard]] uint64_t getTime();
11
12
	/** Sleep for the specified amount of time (in us). It is possible
13
	  * that this method sleeps longer or shorter than the requested time.
14
	  */
15
	void sleep(uint64_t us);
16
17
} // namespace openmsx::Timer
18
19
#endif