Get System Uptime with PowerShell

So, Get-Date gets the current date, right? And LasBootUpTime under Win32_OperatingSystem shows you the nice things, also right? Well, check this out. Subtract the two, magic.

(Get-Date) – (gcim Win32_OperatingSystem).LastBootUpTime