在windows下的PowerShell下:
PS C:\Users\Administrator> (get-date) - (gcim Win32_OperatingSystem).LastBootUpTime
Days : 2
Hours : 18
Minutes : 26
Seconds : 32
Milliseconds : 875
Ticks : 2391928755232
TotalDays : 2.7684360592963
TotalHours : 66.4424654231111
TotalMinutes : 3986.54792538667
TotalSeconds : 239192.8755232
TotalMilliseconds : 239192875.5232
PS C:\Users\Administrator>