VCV Rack API v2
Loading...
Searching...
No Matches
rack::dsp::TTimer< T > Struct Template Reference

Accumulates a timer when process() is called. More...

#include <digital.hpp>

Public Member Functions

void reset ()
 
process (T deltaTime)
 Returns the time since last reset or initialization.
 
getTime ()
 

Public Attributes

time = 0.f
 

Detailed Description

template<typename T = float>
struct rack::dsp::TTimer< T >

Accumulates a timer when process() is called.

Member Function Documentation

◆ reset()

template<typename T = float>
void rack::dsp::TTimer< T >::reset ( )
inline

◆ process()

template<typename T = float>
T rack::dsp::TTimer< T >::process ( T deltaTime)
inline

Returns the time since last reset or initialization.

◆ getTime()

template<typename T = float>
T rack::dsp::TTimer< T >::getTime ( )
inline

Member Data Documentation

◆ time

template<typename T = float>
T rack::dsp::TTimer< T >::time = 0.f

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