MCPcopy Create free account
hub / github.com/bendc/animateplus / trackTime

Function trackTime

animateplus.js:264–267  ·  view source on GitHub ↗
(timing, now)

Source from the content-addressed store, hash-verified

262const paused = {};
263
264const trackTime = (timing, now) => {
265 if (!timing.startTime) timing.startTime = now;
266 timing.elapsed = now - timing.startTime;
267};
268
269const resetTime = object =>
270 object.startTime = 0;

Callers 1

tickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected