Powershell: misurare il tempo di esecuzione di un cmdlet con Measure-Command (it-IT)

Powershell: misurare il tempo di esecuzione di un cmdlet con Measure-Command (it-IT)


Misurare il tempo di esecuzione di un cmdlet

Se vi siete mai chiesto quanto tempo richieda l'esecuzione di uno specifico compito, allora il cmdlet Measure-Command è esattamente quello che stavate cercando: permette di misurare il tempo di esecuzione di un comando o di uno script fino al millisecondo. Si deve semplicemente eseguire il cmdlet di cui si vuole misurare il tempo di esecuzione, passando ilnome del comando o dello script come parametro tra parentesi graffe.
Ad esempio, è possibile misurare il tempo necessario per ottenere una lista di tutti i processi in esecuzione sul computer locale (o su uno remoto) per mezzo del cmdlet Get-Process: aprire una finestra di Powershell ed eseguire il seguente comando

PS C:\Users\Luigi\Measure-Command {Get-Process}

Si otterrà un output come il seguente (catturato da un Windows 7 in lingua Inglese con Powershell versione 3)



Vedere anche

NOTA: le risorse elencate di seguito sono disponibili solo in lingua Inglese.


Altre lingue

Questo articolo è disponibile anche nelle seguenti lingue:

English (en-US)

 

Leave a Comment
  • Please add 4 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Luigi Bruno edited Revision 1. Comment: Added the "Italian Wiki Articles" tag to the tag list.

  • Luigi Bruno edited Original. Comment: Edited the "Misurare il tempo di esecuzione di un cmdlet" section. Added the "Vedere anche" section.

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Luigi Bruno edited Revision 1. Comment: Added the "Italian Wiki Articles" tag to the tag list.

  • Luigi Bruno edited Original. Comment: Edited the "Misurare il tempo di esecuzione di un cmdlet" section. Added the "Vedere anche" section.

Page 1 of 1 (2 items)