openMSX
Functions
openmsx::Timer Namespace Reference

Functions

uint64_t getTime ()
 Get current (real) time in us.
 
void sleep (uint64_t us)
 Sleep for the specified amount of time (in us).
 

Function Documentation

◆ getTime()

uint64_t openmsx::Timer::getTime ( )

◆ sleep()

void openmsx::Timer::sleep ( uint64_t  us)

Sleep for the specified amount of time (in us).

It is possible that this method sleeps longer or shorter than the requested time.

Definition at line 27 of file Timer.cc.

Referenced by TEST_CASE(), and openmsx::SDLSoundDriver::uploadBuffer().