xentara-utils v2.0.4
The Xentara Utility Library
|
This class sets the timer slack of the calling thread to a certain value for the duration of its lifetime. More...
#include <xentara/utils/realTime/TimerSlackGuard.hpp>
Public Member Functions | |
TimerSlackGuard (std::chrono::nanoseconds timerSlack) | |
Constructor. | |
~TimerSlackGuard () | |
Destructor. | |
This class sets the timer slack of the calling thread to a certain value for the duration of its lifetime.
xentara::utils::realTime::TimerSlackGuard::TimerSlackGuard | ( | std::chrono::nanoseconds | timerSlack | ) |
Constructor.
The constructor sets the timer slack to the given value.
xentara::utils::realTime::TimerSlackGuard::~TimerSlackGuard | ( | ) |
Destructor.
The destructor resets the timer slack to what it was before the constructor was called.