FastLED 3.9.3
Loading...
Searching...
No Matches
TimeWarp Class Reference

Detailed Description

Definition at line 11 of file time_warp.h.

Public Types

enum  MODE { EXACT }
 

Public Member Functions

 TimeWarp (uint32_t realTimeNow, float initialTimeScale=1.0f)
 
void setTimeScale (float timeScale)
 
float getTimeScale () const
 
void update (uint32_t timeNow)
 
uint32_t getTime () const
 
uint32_t reset (uint32_t timeNow, float timeScale=1.0f)
 
void setMode (MODE mode)
 

Member Enumeration Documentation

◆ MODE

enum TimeWarp::MODE

Definition at line 13 of file time_warp.h.

Constructor & Destructor Documentation

◆ TimeWarp()

TimeWarp::TimeWarp ( uint32_t realTimeNow,
float initialTimeScale = 1.0f )
inline

Definition at line 16 of file time_warp.h.

Member Function Documentation

◆ getTime()

uint32_t TimeWarp::getTime ( ) const
inline

Definition at line 29 of file time_warp.h.

◆ getTimeScale()

float TimeWarp::getTimeScale ( ) const
inline

Definition at line 20 of file time_warp.h.

◆ reset()

uint32_t TimeWarp::reset ( uint32_t timeNow,
float timeScale = 1.0f )
inline

Definition at line 30 of file time_warp.h.

◆ setMode()

void TimeWarp::setMode ( MODE mode)
inline

Definition at line 38 of file time_warp.h.

◆ setTimeScale()

void TimeWarp::setTimeScale ( float timeScale)
inline

Definition at line 19 of file time_warp.h.

◆ update()

void TimeWarp::update ( uint32_t timeNow)
inline

Definition at line 21 of file time_warp.h.


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