MCPcopy Create free account
hub / github.com/ampproject/amphtml / timeSinceStart

Method timeSinceStart

src/service/timer-impl.js:39–41  ·  view source on GitHub ↗

* Returns time since start in milliseconds. * @return {number}

()

Source from the content-addressed store, hash-verified

37 * @return {number}
38 */
39 timeSinceStart() {
40 return Date.now() - this.startTime_;
41 }
42
43 /**
44 * Runs the provided callback after the specified delay. This uses a micro

Callers 1

getTimeout_Method · 0.80

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected