#include <high_resolution_timer.hpp>
◆ HighResolutionTimer() [1/2]
| pulp::runtime::HighResolutionTimer::HighResolutionTimer |
( |
| ) |
|
|
default |
◆ ~HighResolutionTimer()
| pulp::runtime::HighResolutionTimer::~HighResolutionTimer |
( |
| ) |
|
◆ HighResolutionTimer() [2/2]
| pulp::runtime::HighResolutionTimer::HighResolutionTimer |
( |
const HighResolutionTimer & | | ) |
|
|
delete |
◆ active_mode()
| TimerMode pulp::runtime::HighResolutionTimer::active_mode |
( |
| ) |
const |
|
inline |
The backend actually in use for the current run (may differ from the requested mode when the platform doesn't support it).
◆ is_running()
| bool pulp::runtime::HighResolutionTimer::is_running |
( |
| ) |
const |
|
inline |
Whether the timer is currently running.
◆ operator=()
◆ start() [1/2]
| void pulp::runtime::HighResolutionTimer::start |
( |
std::chrono::microseconds | interval, |
|
|
std::function< void()> | callback ) |
Start the timer with the given interval. Callback runs on a dedicated thread.
◆ start() [2/2]
| void pulp::runtime::HighResolutionTimer::start |
( |
std::chrono::microseconds | interval, |
|
|
std::function< void()> | callback, |
|
|
TimerMode | mode ) |
Start the timer in the requested mode.
Falls back to DedicatedThread if the requested backend is unavailable on this platform.
◆ stop()
| void pulp::runtime::HighResolutionTimer::stop |
( |
| ) |
|
The documentation for this class was generated from the following file: