#include <TimingTools.hpp>
Public Member Functions | |
void | operator() () |
wait_until_ms (size_t ms) | |
Private Attributes | |
size_t | time |
The structure creates a delay timer that waits until a millisecond multiple. Useful when precise timing is required since it takes into account the amount of time passed between calls.
Definition at line 106 of file TimingTools.hpp.
labust::tools::wait_until_ms::wait_until_ms | ( | size_t | ms | ) | [inline] |
Main constructor. Sets the millisecond multiple.
ms | The delay time. |
Definition at line 113 of file TimingTools.hpp.
void labust::tools::wait_until_ms::operator() | ( | ) | [inline] |
The operator triggers the suspend time.
Definition at line 123 of file TimingTools.hpp.
size_t labust::tools::wait_until_ms::time [private] |
Amount of microseconds to sleep.
Definition at line 137 of file TimingTools.hpp.