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

Implements the high-precision timer using Win32 waitable timers. More...

Inheritance diagram for platf::win32_high_precision_timer:
Collaboration diagram for platf::win32_high_precision_timer:

Public Member Functions

 operator bool () override
 Explicitly check whether the timer backend is initialized.
void sleep_for (const std::chrono::nanoseconds &duration) override
 Sleep for the duration.

Detailed Description

Implements the high-precision timer using Win32 waitable timers.

Member Function Documentation

◆ operator bool()

platf::win32_high_precision_timer::operator bool ( )
inlineexplicitoverridevirtual

Explicitly check whether the timer backend is initialized.

Returns
True when the platform timer is available.

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: