MCPcopy Create free account
hub / github.com/FastLED/FastLED / reset

Method reset

src/fl/fx/time.cpp.hpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44fl::u32 TimeWarp::time() const { return mRelativeTime; }
45
46void TimeWarp::reset(fl::u32 realTimeNow) {
47 mLastRealTime = realTimeNow;
48 mStartTime = realTimeNow;
49 mRelativeTime = 0;
50}
51
52void TimeWarp::applyExact(fl::u32 timeNow) {
53 // Handle time going backwards - reset if this happens

Callers 15

clearMethod · 0.45
ensureBufferFunction · 0.45
PromiseClass · 0.45
onQueuingDoneMethod · 0.45
setFx2dMethod · 0.45
runMethod · 0.45
endMethod · 0.45
drawMethod · 0.45
updateBufferFromFileMethod · 0.45
closeMethod · 0.45

Calls

no outgoing calls

Tested by 2

runMethod · 0.36