# Clock

> **Clock** = () => `number`

Defined in: [packages/cache/src/cache.ts:9](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/cache/src/cache.ts#L9)

Read the current time, in milliseconds on the caller’s own scale.

Only differences between readings matter, so a monotonic clock (`performance.now`) and a wall clock (`Date.now`) both work. The cache never reads time on its own: injecting the clock keeps every expiry decision replayable in a test.

## Returns

`number`
