SYSTEM AND METHOD FOR CALCULATING AN AVERAGE STARTUP TIME OF A COMPUTER

Information

  • Patent Application
  • 20070174604
  • Publication Number
    20070174604
  • Date Filed
    November 17, 2006
    17 years ago
  • Date Published
    July 26, 2007
    16 years ago
Abstract
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.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a schematic diagram of a hardware configuration of a system for calculating an average startup time of a computer in accordance with a preferred embodiment;



FIG. 2 is a schematic diagram of main function sub-modules of a calculating module of the system of FIG. 1;



FIG. 3 is a flowchart of a method for calculating an average startup time of a computer in accordance with a preferred embodiment; and



FIG. 4 is a flowchart of the step S23 of FIG. 3, namely calculating an average startup time of the computer of FIG. 3.


Claims
  • 1. A system for calculating an average startup time of a computer, the system comprising: a storage device for storing calculation data; anda calculating module comprising: a predefining sub-module configured for predefining a total reboot count, and for setting a current reboot count; anda rebooting sub-module configured for rebooting the computer if the computer is in standard working condition and the current reboot count does not equal the total reboot count; andan analyzing sub-module configured for analyzing whether the computer is in standard working condition according to standard configuration information of the computer, and for analyzing whether the current reboot count equals the total reboot count; anda calculating sub-module configured for recording a start time and a finish time of rebooting the computer each time the computer is rebooted, for calculating a startup time by subtracting the start time from the finish time, for calculating an average startup time by utilizing all calculated startup times and the current reboot count, and for 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.
  • 2. The system as claimed in claim 1, wherein the calculating module further comprises: a transmitting sub-module configured for saving the total reboot count, the standard configuration information of the computer, the start time, and the finish time into the storage device.
  • 3. The system as claimed in claim 2, wherein the calculation data comprises the total reboot count, the standard configuration information of the computer, the start time, and the finish time.
  • 4. The system as claimed in claim 1, wherein the calculating sub-module is further configured for generating an analysis report if the computer is not in standard working condition.
  • 5. The system as claimed in claim 4, wherein the calculating sub-module is further configured for generating the analysis report if the current reboot count equals the total reboot count.
  • 6. The system as claimed in claim 5, wherein the analysis report comprises the longest startup time in all calculated startup times, the shortest startup time in all calculated startup times, the most recent startup time in averaged startup time, and error information of the computer.
  • 7. A method for calculating an average startup time of a computer, the method comprising the steps of: 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; andrebooting the computer if the computer is in standard working condition.
  • 8. The method as claimed in claim 7, further comprising the steps of: generating an analysis report if the computer is not in standard working condition; orgenerating the analysis report if the current reboot count equals the total reboot count.
  • 9. The method as claimed in claim 8, wherein the analysis report comprises the longest startup time in all calculated startup times, the shortest startup time in all calculated startup times, the most recent startup time in averaged startup time, and error information of the computer.
Priority Claims (1)
Number Date Country Kind
95102350 Jan 2006 TW national