MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ Timer()

MayaFlux::Kriya::Timer::Timer ( Vruta::TaskScheduler scheduler,
Vruta::ProcessingToken  token = Vruta::ProcessingToken::SAMPLE_ACCURATE 
)

Constructs a Timer with the specified scheduler.

Parameters
schedulerThe TaskScheduler that will manage this timer
tokenThe processing token that determines the timing context for this timer (default is SAMPLE_ACCURATE)

Creates a new Timer that will use the provided scheduler for timing operations. The scheduler provides the sample clock and task management infrastructure needed for precise timing.

Definition at line 12 of file Timers.cpp.

13 : m_Scheduler(scheduler)
14 , m_active(false)
15 , m_token(token)
16{
17}
bool m_active
Flag indicating whether a callback is currently scheduled.
Definition Timers.hpp:116
Vruta::TaskScheduler & m_Scheduler
Reference to the scheduler that manages this timer.
Definition Timers.hpp:99
Vruta::ProcessingToken m_token
The processing token that determines the timing context and thread evaluator for this timer.
Definition Timers.hpp:129