摘要:
A method for calculating an average startup time of a computer includes: predefining a total reboot count; setting a current reboot count; rebooting the computer if the computer is in standard working condition; recording a start time and a finish time of rebooting the computer after the computer is rebooted; calculating a startup time by subtracting the start time from the finish time, calculating an average startup time by utilizing all calculated startup times and the current reboot count; incrementing the current reboot count by a value to update the current reboot count with a new value if the current reboot count does not equal the total reboot count; and rebooting the computer if the computer is in standard working condition. A related system is also disclosed.