Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Powershell profile that shows the execution time of the last executed command in ms.

View Microsoft.Powershell_profile.ps1
1 2 3 4 5 6 7
function prompt
{
$host.ui.rawui.WindowTitle = (get-location)
$lastCommand = Get-History -Count 1
if($lastCommand) { Write-Host ("last command took") ($lastCommand.EndExecutionTime - $lastCommand.StartExecutionTime).TotalMilliseconds ("ms") }
return "PS>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.