Timer.hh 389 B

1234567891011121314151617181920
  1. #ifndef TIMER_HH
  2. #define TIMER_HH
  3. #include <cstdint>
  4. namespace openmsx::Timer {
  5. /** Get current (real) time in us. Absolute value has no meaning.
  6. */
  7. uint64_t getTime();
  8. /** Sleep for the specified amount of time (in us). It is possible
  9. * that this method sleeps longer or shorter than the requested time.
  10. */
  11. void sleep(uint64_t us);
  12. } // namespace openmsx::Timer
  13. #endif