MCPcopy Create free account
hub / github.com/breck7/scroll / tick

Method tick

external/.scrollLibs.js:13980–13985  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

13978 this._firstTickTime = this._tickTime
13979 }
13980 tick(msg) {
13981 const elapsed = Date.now() - this._tickTime
13982 if (msg) console.log(`${elapsed}ms ${msg}`)
13983 this._tickTime = Date.now()
13984 return elapsed
13985 }
13986 getTotalElapsedTime() {
13987 return Date.now() - this._firstTickTime
13988 }

Callers 2

otFunction · 0.80
dtFunction · 0.80

Calls 1

logMethod · 0.80

Tested by

no test coverage detected