MCPcopy
hub / github.com/CapSoftware/Cap / adjustedTime

Function adjustedTime

apps/desktop/src/routes/in-progress-recording.tsx:625–633  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

623 };
624
625 const adjustedTime = () => {
626 if (state().variant === "countdown" || state().variant === "initializing")
627 return 0;
628 let t = time() - start();
629 for (const { pause, resume } of pauseResumes) {
630 if (pause && resume) t -= resume - pause;
631 }
632 return Math.max(0, t);
633 };
634
635 const isMaxRecordingLimitEnabled = () => {
636 // Only enforce the limit on instant mode.

Callers 2

InProgressRecordingInnerFunction · 0.85
remainingRecordingTimeFunction · 0.85

Calls 2

stateFunction · 0.85
startFunction · 0.50

Tested by

no test coverage detected