timeit for debug
Time the running time of a block.
Signature
> timeit {flags} (command)
Parameters
command: the command or block to run
Input/output types:
| input | output |
|---|---|
| any | duration |
| nothing | duration |
Examples
Times a command within a closure
> timeit { sleep 500ms }
Times a command using an existing input
> http get https://irsh.vercel.app/book/ | timeit { split chars }
Times a command invocation
> timeit ls -la