Skip to content

Instantly share code, notes, and snippets.

@royashbrook
Created February 7, 2018 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save royashbrook/ede1044c1d0e797c25cb0335323742fb to your computer and use it in GitHub Desktop.
Save royashbrook/ede1044c1d0e797c25cb0335323742fb to your computer and use it in GitHub Desktop.
# Get speed of last command:
($hi = (Get-History)[-1]) | %{ $hi;$hi.EndExecutionTime - $hi.StartExecutionTime}
# check get-history for id-1 to get index if you want a specific task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment