Sunshine latest
Self-hosted game stream host for Moonlight.
platf::high_precision_timer Struct Referenceabstract
Inheritance diagram for platf::high_precision_timer:
[legend]
Collaboration diagram for platf::high_precision_timer:
[legend]

Public Member Functions

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

Member Function Documentation

◆ operator bool()

virtual platf::high_precision_timer::operator bool ( )
pure virtual

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

Returns
true on success, false on error

Implemented in platf::linux_high_precision_timer, platf::macos_high_precision_timer, and platf::win32_high_precision_timer.

◆ sleep_for()

virtual void platf::high_precision_timer::sleep_for ( const std::chrono::nanoseconds & duration)
pure virtual

Sleep for the duration.

Parameters
durationSleep duration

Implemented in platf::linux_high_precision_timer, platf::macos_high_precision_timer, and platf::win32_high_precision_timer.


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