MCPcopy Create free account
hub / github.com/caike/jQuery-Simple-Timer / detectPerformanceApi

Function detectPerformanceApi

tests/qunit-2.9.2.js:154–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 var performanceNow = hasPerformanceApi ? performance.now.bind(performance) : now;
153
154 function detectPerformanceApi() {
155 return window$1 && typeof window$1.performance !== "undefined" && typeof window$1.performance.mark === "function" && typeof window$1.performance.measure === "function";
156 }
157
158 function measure(comment, startMark, endMark) {
159

Callers 1

qunit-2.9.2.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected