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:

inputoutput
anyduration
nothingduration

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