Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
platf::linux_high_precision_timer Class Reference

Explicitly linux high-precision timer implementation backed by timerfd. More...

Inheritance diagram for platf::linux_high_precision_timer:
Collaboration diagram for platf::linux_high_precision_timer:

Public Member Functions

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

Detailed Description

Explicitly linux high-precision timer implementation backed by timerfd.

Member Function Documentation

◆ operator bool()

platf::linux_high_precision_timer::operator bool ( )
inlineexplicitoverridevirtual

Explicitly 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::linux_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: