< prev index next >

src/hotspot/os/windows/os_windows.cpp

Print this page
rev 56978 : 8234397: add OS uptime information to os::print_os_info output

@@ -1602,10 +1602,13 @@
   }
 #endif
   st->print("OS:");
   os::win32::print_windows_version(st);
 
+  unsigned long long ticks = GetTickCount64();
+  st->print_cr("OS uptime (in days): %.2lf", (double) ((double)ticks/(1000.0*60.0*60.0*24.0)));
+
 #ifdef _LP64
   VM_Version::print_platform_virtualization_info(st);
 #endif
 }
 
< prev index next >