Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
262
const
paused = {};
263
264
const
trackTime = (timing, now) => {
265
if
(!timing.startTime) timing.startTime = now;
266
timing.elapsed = now - timing.startTime;
267
};
268
269
const
resetTime = object =>
270
object.startTime = 0;
Callers
1
tick
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected