Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
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 void sleep_for (const std::chrono::nanoseconds &duration)=0
 Sleep for the duration.
virtual operator bool ()=0
 Check if platform-specific timer backend has been initialized successfully.

Detailed Description

Definition at line 979 of file common.h.

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.

◆ 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.


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