FastLED 3.9.7
Loading...
Searching...
No Matches
fl::TimeScale Class Reference

Detailed Description

Definition at line 26 of file time.h.

+ Inheritance diagram for fl::TimeScale:

Public Member Functions

 TimeScale (uint32_t realTimeNow, float initialTimeScale=1.0f)
 
void setScale (float timeScale)
 
float scale () const
 
uint32_t update (uint32_t timeNow) override
 
uint32_t time () const override
 
void reset (uint32_t realTimeNow) override
 
void pause (uint32_t now)
 
void resume (uint32_t now)
 
- Public Member Functions inherited from fl::Referent
virtual int ref_count () const
 

Additional Inherited Members

- Protected Member Functions inherited from fl::Referent
 Referent (const Referent &)
 
Referentoperator= (const Referent &)
 
 Referent (Referent &&)
 
Referentoperator= (Referent &&)
 
virtual void ref ()
 
virtual void unref ()
 
virtual void destroy ()
 

Constructor & Destructor Documentation

◆ TimeScale()

fl::TimeScale::TimeScale ( uint32_t realTimeNow,
float initialTimeScale = 1.0f )

Definition at line 12 of file time.cpp.

◆ ~TimeScale()

fl::TimeScale::~TimeScale ( )

Definition at line 17 of file time.cpp.

Member Function Documentation

◆ pause()

void fl::TimeScale::pause ( uint32_t now)

Definition at line 27 of file time.cpp.

◆ reset()

void fl::TimeScale::reset ( uint32_t realTimeNow)
overridevirtual

Implements fl::TimeFunction.

Definition at line 62 of file time.cpp.

◆ resume()

void fl::TimeScale::resume ( uint32_t now)

Definition at line 34 of file time.cpp.

◆ scale()

float fl::TimeScale::scale ( ) const

Definition at line 23 of file time.cpp.

◆ setScale()

void fl::TimeScale::setScale ( float timeScale)

Definition at line 19 of file time.cpp.

◆ time()

uint32_t fl::TimeScale::time ( ) const
overridevirtual

Implements fl::TimeFunction.

Definition at line 58 of file time.cpp.

◆ update()

uint32_t fl::TimeScale::update ( uint32_t timeNow)
overridevirtual

Implements fl::TimeFunction.

Definition at line 45 of file time.cpp.


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