openMSX
Functions
openmsx::Timer Namespace Reference

Functions

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

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 29 of file Timer.cc.

Referenced by openmsx::RealTime::timeLeft(), and openmsx::SDLSoundDriver::uploadBuffer().