(label?: string | undefined)
| 611 | * @since 2.0.0 |
| 612 | */ |
| 613 | export const time = (label?: string | undefined): Effect.Effect<void, never, Scope> => |
| 614 | consoleWith((console) => |
| 615 | effect.acquireRelease( |
| 616 | effect.sync(() => { |
| 617 | console.time(label) |
| 618 | }), |
| 619 | () => |
| 620 | effect.sync(() => { |
| 621 | console.timeEnd(label) |
| 622 | }) |
| 623 | ) |
| 624 | ) |
| 625 | |
| 626 | /** |
| 627 | * Logs the elapsed time for an existing timer without stopping it, allowing progress reports for long-running operations. |
nothing calls this directly
no test coverage detected