본문 바로가기
OS/Windows

[PowerShell] Get Elapsed Time using PowerShell Script

by llHoYall 2021. 12. 21.
$startTime = $(get-date)
# Tasks that you want to measure
$elapsedTime = $(get-date) - $startTime
$totalTime = "{0:HH:mm:ss}" -f ([datetime]$elapsedTime.Ticks)
Write-Host $totalTime

'OS > Windows' 카테고리의 다른 글

[Windows] Hibernate 켜기  (0) 2022.03.08
[Windows] Microsoft PowerToys  (0) 2021.07.15
[Windows] Getting Started with Windows Terminal  (0) 2020.12.24
[Windows] Chocolatey  (0) 2020.08.30

댓글