( command: string, memFile: string, wrapInShell: boolean, )
| 28 | * needs no inner shell. |
| 29 | */ |
| 30 | export function wrapWithTime( |
| 31 | command: string, |
| 32 | memFile: string, |
| 33 | wrapInShell: boolean, |
| 34 | ): string { |
| 35 | if (!gnuTimeAvailable()) { |
| 36 | return command; |
| 37 | } |
| 38 | |
| 39 | return formatTimeCommand(command, memFile, wrapInShell); |
| 40 | } |
| 41 | |
| 42 | // The pure wrapping (no availability check), split out for testing. |
| 43 | export function formatTimeCommand( |
no test coverage detected