MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / nowMs

Function nowMs

src/components/viewer3d/webGpuSplatViewIdle.ts:3–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import type { WebGpuSplatFrameSnapshot } from './WebGpuSplatCanvasRuntime';
2
3export function nowMs(): number {
4 return typeof performance !== 'undefined' && typeof performance.now === 'function'
5 ? performance.now()
6 : Date.now();
7}
8
9export function sameWebGpuSplatCameraPose(
10 a: WebGpuSplatFrameSnapshot,

Callers 2

setFrameSnapshotFunction · 0.90
checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected