2

After you reboot and the system is all loaded up, is there a place that stores the system boot time; meaning the total time it took for the system to boot back up.

I would like to compare different systems and their boot times perhaps for testing things like fastest booting OS's, optimization performance, or fastest booting drives like solid-state drives compared to other drives.

4 Answers4

5

If you're running Windows XP, use Bootvis. you will get a detailed graph showing you exactly how long each application and device driver takes to load.

enter image description here

For later Windows versions use MSDN's Windows Performance Toolkit, an even better set of tools than the old Bootvis utility. At its most basic, you can use the tools to provide you with a similar graphical display of boot performance which was provided by Bootvis.

enter image description here

A simpler application would be Boot Timer, but it also works for Vista/7.

enter image description here

And then there is Passmark's AppTimer to analyze the startup behaviour of applications.

enter image description here

So much for software. Other than that, resort to Phoshi's hardware solution that works cross-platform :)

enter image description here

Gareth
  • 19,080
1

In PowerShell:

$os = Get-WmiObject -computer localhost -class Win32_OperatingSystem

$boot = $os.ConvertToDateTime($os.LastBootUpTime)

then

((Get-Date) - $boot).TotalSeconds

or in Days:Hours:Minutes:Seconds...

((Get-Date) - $boot).ToString()
njd
  • 11,426
0

How to find the last 2 boot time using PowerShell?

Get-EventLog -LogName System -Source Microsoft-Windows-Kernel-General | Where-Object {$_.EventID -eq 12} | Select-Object -Property TimeGenerated -First 2
JinSnow
  • 912
0

Under Linux, use bootchart to measure the boot time. It can also be used to analyze how much time is spent by which programs as well as I/O and CPU use.

More basically, you can check /proc/uptime to see how long the kernel has been running.