MCPcopy Create free account
hub / github.com/TanStack/router / createTimer

Function createTimer

packages/solid-router/tests/utils.ts:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5}
6
7export function createTimer() {
8 let time = Date.now()
9
10 return {
11 start: () => {
12 time = Date.now()
13 },
14 getTime: () => {
15 return Date.now() - time
16 },
17 }
18}
19
20export const getIntersectionObserverMock = ({
21 observe,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected