timeit for debug

Time the running time of a block.

Signature

> timeit (command)

Parameters

  • command: the command or block to run

Examples

Times a command within a closure

> timeit { sleep 500ms }

Times a command using an existing input

> http get https://www.nushell.sh/book/ | timeit { split chars }

Times a command invocation

> timeit ls -la