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

Detailed Description

Definition at line 26 of file time.h.

#include <time.h>

+ Inheritance diagram for fl::TimeScale:
+ Collaboration diagram for fl::TimeScale:

Public Member Functions

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

Private Member Functions

void applyExact (uint32_t timeNow)
 

Private Attributes

uint32_t mLastRealTime = 0
 
uint32_t mPauseTime = 0
 
uint32_t mRelativeTime = 0
 
uint32_t mStartTime = 0
 
float mTimeScale = 1.0f
 

Additional Inherited Members

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

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