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

Method constructor

external/.scrollLibs.js:13976–13979  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13974
13975class Timer {
13976 constructor() {
13977 this._tickTime = Date.now() - (Utils.isNodeJs() ? 1000 * process.uptime() : 0)
13978 this._firstTickTime = this._tickTime
13979 }
13980 tick(msg) {
13981 const elapsed = Date.now() - this._tickTime
13982 if (msg) console.log(`${elapsed}ms ${msg}`)

Callers 1

.scrollLibs.jsFile · 0.45

Calls 1

isNodeJsMethod · 0.45

Tested by

no test coverage detected