tscircuit/autorouting-dataset-01
This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.
- Version
- 1.0.102
- License
- unset
- Stars
- 4
scripts/run-benchmark/formatTimeSeconds.ts
/**
* Format milliseconds as seconds with one decimal place.
*/
export const formatTimeSeconds = (timeMs: number | null): string => {
if (timeMs === null) {
return "n/a"
}
return `${(timeMs / 1000).toFixed(1)}s`
}