Forrest logo
back to context overview

measure-command

List of commands for measure-command:

  • measure-command:tldr:1192a measure-command: Measure the time it takes to run a command.
    $ Measure-Command { ${command} }
    try on your machine
    explain this command
  • measure-command:tldr:6031e measure-command: Pipe input to Measure-Command (objects that are piped to `Measure-Command` are available to the script block that is passed to the Expression parameter).
    $ 10, 20, 50 | Measure-Command -Expression { for ($i=0; $i -lt $_; $i++) {$i} }
    try on your machine
    explain this command
back to context overview