Installation (Quick Start)
To install the prompt, run the following PowerShell command:
iex (New-Object Net.Webclient).DownloadString('https://gist.github.com/nzbart/5481021/raw/3-Installer.ps1')
A PowerShell prompt that times how long each operation takes and displays the result at the command prompt. Measure-Command is great, but only useful if you had the presence of mind to run your long-running command within it.
A balloon will pop up in the notification area telling you of any tasks that take longer than 30 seconds to complete.
An example of what the command line looks like (playing nicely with PoshGit):
C:\Demo [master]> Start-Sleep 3 00:00:03.0048920 C:\Demo [master]> Start-Sleep 5 00:00:04.9974939 C:\Demo [master]> 00:00:00.0004274 C:\Demo [master]>
- Autocompletion of path names etc. causes the PowerShell host to fire a Busy event, which prematurely sets of the timer, inflating the next timing measurement.
- The notification icon is not disposed of when the PowerShell instance shuts down.