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

macOS high-precision timer implementation backed by a worker thread. More...

Inheritance diagram for platf::macos_high_precision_timer:
Collaboration diagram for platf::macos_high_precision_timer:

Public Member Functions

 operator bool () override
 Explicitly report that the thread-based timer is always available.
void sleep_for (const std::chrono::nanoseconds &duration) override
 Sleep for the duration.

Detailed Description

macOS high-precision timer implementation backed by a worker thread.

Member Function Documentation

◆ operator bool()

platf::macos_high_precision_timer::operator bool ( )
inlineexplicitoverridevirtual

Explicitly report that the thread-based timer is always available.

Returns
True because sleeping needs no additional timer resource.

Implements platf::high_precision_timer.

◆ sleep_for()

void platf::macos_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: