4 lines
191 B
PowerShell
4 lines
191 B
PowerShell
|
function Find-LastExecutionTime {
|
||
|
$lastCommand = Get-History -Count 1
|
||
|
if($lastCommand) { ($lastCommand.EndExecutionTime - $lastCommand.StartExecutionTime).TotalMilliseconds ("ms") }
|
||
|
}
|