I am trying to calculate time taken by reboot on SUSE linux systems (SLES11 and SLES12 systems) as follows:
reboot_time = end_time - start_time
where
start_time is "time at which reboot command is triggered"
end_time is "time at which system is ready after booting process, finishing up startup and userspace programs" OR "time when login is prompted soon after reboot"
I am able to know start_time. But not able to know time end_time for SLES11 systems (init.d SysV version). For SLES12 (systemd initialization), systemd-analyze was giving required information, but I am not able to figure out a reliable way for init.d systems. Is there any similar alternative on a SysV init system or SLES11 that could give me the time spent on booting (starting kernel, finish running startup programs and complete userspace initialization)?