Sunshine latest
Self-hosted game stream host for Moonlight.
platf::win32_high_precision_timer Class Reference
Inheritance diagram for platf::win32_high_precision_timer:
[legend]
Collaboration diagram for platf::win32_high_precision_timer:
[legend]

Public Member Functions

 operator bool () override
 Check if platform-specific timer backend has been initialized successfully.
 
void sleep_for (const std::chrono::nanoseconds &duration) override
 Sleep for the duration.
 

Member Function Documentation

◆ operator bool()

platf::win32_high_precision_timer::operator bool ( )
inlineoverridevirtual

Check if platform-specific timer backend has been initialized successfully.

Returns
true on success, false on error

Implements platf::high_precision_timer.

◆ sleep_for()

void platf::win32_high_precision_timer::sleep_for ( const std::chrono::nanoseconds & duration)
inlineoverridevirtual

Sleep for the duration.

Parameters
durationSleep duration

Implements platf::high_precision_timer.


The documentation for this class was generated from the following file: