Vous êtes sur la page 1sur 1

# course 6434A Module 1 Demo 6

$p = Get-Process powershell
$t = $p.get_TotalProcessorTime()
$u = $p.get_UserProcessorTime()
$s = $t - $u # system (kernel) processor time on behalf of this process
$s,$u,$t
$s,$u,$t | Select-Object TotalMilliseconds | Format-Table -auto
#====================================================================
# End of Demo
# Load next demo script.
CD Democode:
.\Start-Demo '6434A-Mod04-Demo07.txt'

Vous aimerez peut-être aussi