Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting duration of the last command (PowerShell) #441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Getting duration of the last command (PowerShell) #441

wants to merge 1 commit into from

Conversation

Windos
Copy link

@Windos Windos commented Oct 20, 2020

Please describe your program and how to run it.

This file can be "dot sourced" in a PowerShell prompt:

. .\path\last_command_runtime.ps1

Or it's content can be types interactively at the prompt.

It will tell you how long the previous command took to execute.

The file also includes, in comments, the non-one-line version and an even shorter option for PowerShell 7.0 (maybe 6.0, but haven't tested) and above.


What Programming Language?

PowerShell 馃

@wzhouwzhou wzhouwzhou added hacktoberfest-accepted Hacktoberfest! Lang: PowerShell Contributions made in PowerShell labels Oct 25, 2020
@wzhouwzhou wzhouwzhou added this to In progress in Hacktoberfest 2020 via automation Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest! Lang: PowerShell Contributions made in PowerShell
Projects
Hacktoberfest 2020
  
In progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants