Windows: Equivalent to linux time command

Hi,

the time command in Windows gets or sets the system time. If you need an equivalent to the linux time command – which measure the execution time of a given command – you can use the powershell commandlet Measure-Command. Limitation is that only the time can measure how long the command execution runs, not splited into user, system and realtime.

Measure-Command {start-process yourCommand.exe -argumentlist "argument1 argument2" -wait}
Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 4
Milliseconds      : 709
Ticks             : 47093374
TotalDays         : 5,45062199074074E-05
TotalHours        : 0,00130814927777778
TotalMinutes      : 0,0784889566666667
TotalSeconds      : 4,7093374
TotalMilliseconds : 4709,3374

Michael

Advertisment to support michlstechblog.info

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress