export function captureRuntimeSampleStart() {
    return {
        cpu: process.cpuUsage(),
        startedAt: process.hrtime.bigint(),
    };
}
export function finishRuntimeSample(start) {
    const cpu = process.cpuUsage(start.cpu);
    return {
        cpuSystemMs: cpu.system / 1000,
        cpuUserMs: cpu.user / 1000,
        wallTimeMs: Number(process.hrtime.bigint() - start.startedAt) / 1_000_000,
    };
}
//# sourceMappingURL=runtime-sample.js.map