W3cubDocs

/Nushell

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 { sleep500ms }

Times a command using an existing input

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

Times a command invocation

>timeitls-la

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/timeit.html