MCPcopy
hub / github.com/QwikDev/qwik / createTimer

Function createTimer

packages/qwik/src/server/utils.ts:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 * not support performance.
6 */
7export function createTimer() {
8 if (typeof performance === 'undefined') {
9 return () => 0;
10 }
11 const start = performance.now();
12 return () => {
13 const end = performance.now();
14 const delta = end - start;
15 return delta / 1000000;
16 };
17}
18
19export function getBuildBase(opts: RenderToStringOptions) {
20 let base = opts.base;

Callers 1

renderToStreamFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…