MCPcopy Index your code
hub / github.com/CapSoftware/Cap / resetStatsWindow

Function resetStatsWindow

apps/desktop/src/utils/socket.ts:1146–1165  ·  view source on GitHub ↗
(now: number)

Source from the content-addressed store, hash-verified

1144 }
1145
1146 const resetStatsWindow = (now: number) => {
1147 frameCount = 0;
1148 frameTimeSum = 0;
1149 totalBytesReceived = 0;
1150 actualRendersCount = 0;
1151 minFrameTime = Number.MAX_VALUE;
1152 maxFrameTime = 0;
1153 renderTimeSum = 0;
1154 renderTimeCount = 0;
1155 maxRenderMs = 0;
1156 uploadTimeSum = 0;
1157 uploadTimeCount = 0;
1158 maxUploadMs = 0;
1159 receiveToDisplaySum = 0;
1160 receiveToDisplayCount = 0;
1161 maxReceiveToDisplayMs = 0;
1162 sharedBufferWrites = 0;
1163 sharedBufferFallbacks = 0;
1164 statsWindowStartedAt = now;
1165 };
1166
1167 const getLocalFpsStats = (): FpsStats => {
1168 const windowMs = performance.now() - statsWindowStartedAt;

Callers 1

createImageDataWSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected