MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getEmptyExecutionResult

Function getEmptyExecutionResult

lib/utils.ts:607–617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605}
606
607export function getEmptyExecutionResult(): BasicExecutionResult {
608 return {
609 code: -1,
610 okToCache: false,
611 filenameTransform: x => x,
612 stdout: [],
613 stderr: [],
614 execTime: 0,
615 timedOut: false,
616 };
617}
618
619export function deltaTimeNanoToMili(startTime: bigint, endTime: bigint): number {
620 return Number((endTime - startTime) / BigInt(1_000_000));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected