CN100419709C - System and method for counting use time - Google Patents

System and method for counting use time Download PDF

Info

Publication number
CN100419709C
CN100419709C CNB2005101074319A CN200510107431A CN100419709C CN 100419709 C CN100419709 C CN 100419709C CN B2005101074319 A CNB2005101074319 A CN B2005101074319A CN 200510107431 A CN200510107431 A CN 200510107431A CN 100419709 C CN100419709 C CN 100419709C
Authority
CN
China
Prior art keywords
time
service time
equipment
computer system
storage unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005101074319A
Other languages
Chinese (zh)
Other versions
CN1940885A (en
Inventor
刘冬哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2005101074319A priority Critical patent/CN100419709C/en
Publication of CN1940885A publication Critical patent/CN1940885A/en
Application granted granted Critical
Publication of CN100419709C publication Critical patent/CN100419709C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Electric Clocks (AREA)

Abstract

A timing method includes recording start up and end time of system and calculating out service time of this operation, adding this service time on original accumulated service time in storage unit and writing added sum into said storage unit to replace value of original accumulated service time, enabling to display accumulated service time according to external command but not enabling to rewrite accumulated service time by command. The timing system used for realizing said method is also disclosed.

Description

The method of a kind of computer system and statistics accumulation service time
Technical field
The present invention relates to the system and method for the service time of a kind of statistic computer system or parts.
Background technology
In the existing computer system, we are difficult to more accurate know a computer system or parts and how long have used.This has brought a lot of inconvenience to maintenance and the after sale service that computer equipment carries out system.For example: in present computing machine after service, the guarantee time calculates over year.But different users, different customs uses the time of computer every day also inequality.If all calculating over year, this is not a comparatively fair and method accurately.And sometimes, when needing that some problems are carried out temporal statistics during the maintenance, owing to not knowing the employed precise time of the parts that will add up, such statistics can't be carried out often.This method can be carried out temporal statistics to some faults of computing machine simultaneously.
In addition, because development of computer is rapid, device upgrade is regenerated frequent, thereby has brought up a huge component market.When changing accessory, some bad supplier can fill newly with old, but the user but can't know the operating position of this product.Come statistical system or accessory to accumulate service time by a kind of method, be convenient to the accumulative total service time that the user knows that it is definite, judging for the assessment of equipment newness degree and quality provides reference.
Summary of the invention
The object of the present invention is to provide the system and method for the service time of a kind of system of statistic computer accurately or parts.
According to a kind of computer system of the present invention, be used to the service time of the equipment of adding up, comprising: the RTC clock; Also comprise: storage unit, the accumulation service time that is used to store institute's measurement equipment; Timing unit is used to calculate or time that recording unit uses each time; Control module is used to control the operation of timing unit and storage unit and handles the peripheral operation order; Wherein, the time that described timing unit is noted the current RTC clock of system according to the use commencing signal of this measurement equipment of outside input to start with constantly, and time of RTC clock of noting system this moment according to the use end signal of this measurement equipment of outside input is as the finish time, and according to calculate the zero hour and the finish time or recording unit when time the use historical data, and should use history data store to storage unit.
According to a kind of statistics accumulation of the present invention method of service time, may further comprise the steps in addition: timing unit is according to the commencing signal of equipment operation, the zero hour that the value of the system RTC clock of record this moment is used as equipment; Timing unit is according to the end signal of equipment operation, and the value of record system RTC clock at this moment is as the finish time of equipment use; Calculate the timing unit comparison finish time and the zero hour service time when secondary device, the former accumulation of putting down in writing in time service time and storage unit of equipment is worth addition service time, and the former accumulation of putting down in writing in the addition gained sum replacement storage unit is worth in the write storage unit service time.Accumulation can show according to external command output, but cannot be rewritten by order service time.
Beneficial effect of the present invention is the time used of logger computer system exactly or the vitals that some can be replaced, for the maintenance and the value assessment of equipment provides definite reference.
Description of drawings
Fig. 1 is the structural representation of timekeeping system of the present invention;
Fig. 2 is the synoptic diagram of timekeeping system embodiment 1 of the present invention;
Fig. 3 is the synoptic diagram of timekeeping system embodiment 2 of the present invention;
Fig. 4 is the synoptic diagram of clocking method embodiment 1 of the present invention;
Fig. 5 is the synoptic diagram of clocking method embodiment 2 of the present invention.
Among the figure
1 timekeeping system, 2 control modules
3 storage unit, 4 timing units
Embodiment
Below in conjunction with Figure of description to the embodiments of the present invention further instruction.
As shown in Figure 1, timekeeping system 1 of the present invention comprises control module 2, storage unit 3, timing unit 4.Wherein this control module 2 is connected with timing unit 4 with storage unit 3 and controls its operation and handle various external signals and instruction.Described storage unit 3, the accumulation service time that is used to store institute's measurement equipment (computer system or its parts), it can be preserved temporal information earlier when equipment (computer system or parts) accident power-off.Described timing unit 4 is according to the use commencing signal (Start Signal) of equipment under test (computer system or certain parts) and use end signal (End Signal) to calculate the service time of this equipment under test (system or this parts).This computer equipment receives the commencing signal (Start Signal) and the end signal (End Signal) of equipment under test from the outside, wherein this commencing signal is used to import the signal that the use of institute's measurement equipment begins, and this end signal is used to import institute's measurement equipment and uses the signal that finishes.
In addition, the power supply Power of computer equipment can continue to keep the power supply of a period of time in system closedown, has guaranteed that time enough is with data write storage unit 3.For example, the electric capacity that can increase some low capacities by the power unit at computer equipment is realized.
The principle of computer equipment of the present invention is: when equipment (computer system or certain parts) when bringing into use, to a computer equipment input commencing signal (Start Signal), instruct computer equipment picks up counting to this use; When aforesaid equipment (computer system or this parts) finishes to use, to a computer equipment input end signal (End Signal), the timing of this use of instruct computer device end; Accumulation addition service time of storage in timing that 4 pairs of these secondary devices of control module 2 indication timing units use and the storage unit 3, and control will refresh initial value among the result after addition write storage unit again 3.
And accumulation data service time of the equipment in the storage unit of this computer equipment can be exported to the outside by data (Data) port by send control (Command) order to control module.
Storage unit in the computer equipment as shown in Figure 1, control module and timing unit, the module of being arranged to that can be independent is used, even can be designed to the chip of integrated each unit.
Computer equipment embodiment 1
The computer equipment that is used for adding up accumulation service time of whole computer system can dispose the function that realizes described timing unit and form by these existing equipments that utilize computer system, for example in existing computer system, all has time clock feature, and the clock calculation function that system itself is had is very powerful, as having a RTC clock chip in the PC system, it has clocking capability.
As shown in Figure 2, can be by an integrated timing unit and storage unit in the BIOS of computer system chip, and in conjunction with utilizing the CPU of existing system, and the RTC that utilizes south bridge circuit, formed a computer system jointly.The data that is set the accumulative total service time in the BIOS can be read by order, but can not be by other order changes beyond the timing unit.In addition, also can be integrated in its elsewhere outside the BIOS chip to storage unit, can reduce the storage burden of BIOS chip like this, but need to increase the data traffic of BIOS chip and miscellaneous part.
In computer system, the last integrated underlying protocol of computer system of BIOS, the data information of integrated equipment is difficult to be modified on BIOS.Simultaneously, the part that BIOS moves when being computer system starting again at first, such computer equipment can just pick up counting when just bringing into operation, and has guaranteed the time statistical accuracy.
The accumulative total service time of being added up with upper type, just for being integrated in the whole computer system of all parts compositions on the plank, because a lot of vitals in the computer system can be changed, the user can grow service time or have the parts of damage to change, and also have great importance the service time of therefore adding up these vitals.Generally speaking, can replace and the parts of outbalance if any hard disk, CD-ROM drive, video card, CPU, internal memory and various pci cards etc., much self just have memory bank in these equipment, as EPROM, the space of these memory banks does not make full use of, remaining space on it can be utilized fully, also storage chip can be increased separately in addition.At this moment control module need be write the time data that counts respectively in the memory bank of each parts, just can realize at the statistics of accumulative total service time of these parts.Each functions of components of computer system and principle of work differ huge, and whether self have program, have system and be divided into two classes according to it: a class is logic and the memory unit as CPU, internal memory; Another kind of is picture hard disk, CD-ROM drive, video card and some plug-in cards, himself just constitutes a subsystem.For CPU and this base part of internal memory, self can be integrated or increase a memory bank, write data respectively inside by system, come carrying out record its service time with this.And for the parts that have subsystem of one's own, after himself increasing a memory bank, can finish the data of statistics and accumulative total service time and write by self system and software.Also can be by computer system, by the bus that these mini systems link to each other with computing machine, the data of finishing memory bank on it write.
Computer equipment embodiment 2
Be example now, the process of accumulative total service time of statistic computer parts is described with a computer display card AGP.
Generally speaking, video card self all has processor and storage unit.So need be on video card an integrated timing unit, the current time of the RTC clock of this timing unit register system, as shown in Figure 3.Be integrated in the function that the timing unit on the video card need be used south bridge RTC.In addition, timing unit on the video card and control module can be integrated in the BIOS chip of video card, and the data of timing can write on the self-contained memory bank of video card.Video card comes the RTC clock of reading system by the bus of FPDP connected system.The principle of work of such video card timing is: when video card is started working, note initial time and when the quitting work of video card record stop constantly, the finish time and initial time are compared, calculate this working time of this video card, again with accumulation addition service time in current working time and the memory bank, refresh the former accumulation value of service time with new value then, and be recorded in the memory bank.
Statistical computation machine equipment accumulation method embodiment service time 1
In the whole computer system accumulative total of the statistics of previous embodiment 1 computer equipment of service time, the course of work of computer equipment comprises the steps: as shown in Figure 4
401: computer system power-on starts use;
402: the timing unit that is integrated in the system bios chip is noted the current RTC clock time of system, as the zero hour of this system works, and it is stored among internal memory or the CMOS;
403:BIOS finishes and gives operating system and application program with control, carries out the main process that computer system is used;
404: the application program of this use finishes and operating system withdraws from;
405:BIOS operates from the control of operating system catcher computer system, timing unit is noted time of RTC clock of system's this moment as finish time of this use of computer system, compared with the zero hour finish time, calculate the time of this use, the accumulated time value addition of putting down in writing in this time value and the memory bank is obtained new accumulation service time, and store into service time with new accumulation and to refresh former accumulation service time in the memory bank;
406:BIOS withdraws from, and system closedown finishes this use.
Statistical computation machine equipment accumulation method embodiment service time 2
Method and the process of above-mentioned whole computer system statistics service time, different with method and the process of statistics service time of a certain parts of computer system, existing is example descriptive statistics machine element method and the process of service time with the DVD driver.
As shown in Figure 5, the method for statistics DVD driver accumulation service time may further comprise the steps:
501: system sends work order to the DVD driver, also can the DVD driver be started working automatically by put into the DVD dish in driver;
Integrated timing unit is noted current time of RTC clock of system's this moment as zero hour of this use of DVD driver in the 502:DVD driver;
The 503:DVD driver enters duty, up to the out-of-work order of the system of receiving or quit work voluntarily;
504: timing unit is noted the time of the RTC clock of system's this moment, as the finish time of this use of DVD driver, compared with the aforementioned start time this finish time, with its accumulation addition service time of constantly storing in the storage unit of difference and equipment, and write the value of sum in the storage unit in the DVD driver and refresh the value that former DVD driver is accumulated service time;
The 505:DVD actuator device withdraws from.
When the accumulative total of total system of statistics computer equipment of the present invention during service time, timing unit is integrated in the BIOS chip of system; And when the accumulation that is used to add up certain parts during service time, timing unit is integrated in the inside of these parts.Timing course is sightless for the user of operating system and application program.In the BIOS interface can by certain order check with readout equipment in accumulative total service time of storing, but this accumulative total can not be changed by external command service time.
In addition, can also put down in writing zero-time and concluding time that each equipment (computer system or parts) uses by making timing unit, and with the whole story time value be deposited in the storage unit each use of recording unit that can be detailed like this, but this need increase the memory space of storage unit.
The method of computer equipment of the present invention and statistical computation machine equipment service time is the time used of logger computer system or the vitals that some can be replaced exactly, for the maintenance and the value assessment of equipment provides definite reference.

Claims (12)

1. computer system is used to service time of the equipment of adding up, and comprising: the RTC clock; Be characterised in that also and comprise: storage unit, the accumulation service time that is used to store institute's measurement equipment; Timing unit is used to calculate or time that recording unit uses each time; Control module is used to control the operation of timing unit and storage unit and handles the peripheral operation order;
Wherein, the time that described timing unit is noted the current RTC clock of system according to the use commencing signal of this measurement equipment of outside input to start with constantly, and time of RTC clock of noting system this moment according to the use end signal of this measurement equipment of outside input is as the finish time, and according to the zero hour and the finish time recording unit the use historical data, and should use historical data to be saved in storage unit.
2. computer system as claimed in claim 1 is characterised in that, described use historical data comprises that equipment is when the inferior service time and the accumulation service time of the initial moment and equipment.
3. computer system as claimed in claim 1 or 2 is characterised in that described equipment is computer system or machine element.
4. computer system as claimed in claim 1 is characterised in that described timing unit is integrated in the BIOS chip.
5. computer system as claimed in claim 1 is characterised in that described control module is the CPU of system.
6. computer system as claimed in claim 1 or 2, be characterised in that in this service time that described timing unit will calculate and the storage unit former accumulation service time mutually adduction gained replaced the former accumulation value of service time with write storage unit.
7. computer system as claimed in claim 1 or 2 is characterised in that, wherein said control module can use historical data to export by data bus the equipment in the storage unit according to the control command of outside.
8. computer system as claimed in claim 1 is characterised in that, the data that described storage unit is not accepted beyond the timing unit write.
9. the method for statistics accumulation service time is characterised in that may further comprise the steps:
Timing unit is according to the commencing signal of equipment operation, and the value of record system RTC clock at this moment is as the zero hour of equipment use;
Timing unit is according to the end signal of equipment operation, and the value of record system RTC clock at this moment is as the finish time of equipment use;
Calculate the timing unit comparison finish time and the zero hour service time when secondary device, the former accumulation of putting down in writing in time service time and storage unit of equipment is worth addition service time, and the former accumulation of putting down in writing in the addition gained sum replacement storage unit is worth in the write storage unit service time.
10. the method for statistics accumulation as claimed in claim 9 service time is characterised in that described equipment is computer system or machine element.
11. the method for statistics accumulation as claimed in claim 9 service time is characterised in that after timing unit is noted the zero hour that equipment uses and the finish time and can deposits the data of the zero hour and the finish time in storage unit.
12. the method for statistics accumulation as claimed in claim 10 service time is characterised in that computer system power-on starts the zero hour that back timing unit record uses; Computer system withdraws from the finish time that operation back timing unit record uses.
CNB2005101074319A 2005-09-30 2005-09-30 System and method for counting use time Expired - Fee Related CN100419709C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101074319A CN100419709C (en) 2005-09-30 2005-09-30 System and method for counting use time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101074319A CN100419709C (en) 2005-09-30 2005-09-30 System and method for counting use time

Publications (2)

Publication Number Publication Date
CN1940885A CN1940885A (en) 2007-04-04
CN100419709C true CN100419709C (en) 2008-09-17

Family

ID=37959092

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101074319A Expired - Fee Related CN100419709C (en) 2005-09-30 2005-09-30 System and method for counting use time

Country Status (1)

Country Link
CN (1) CN100419709C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI643058B (en) * 2017-07-25 2018-12-01 緯創資通股份有限公司 Electronic device and methods for calculating power on hours

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957789B (en) * 2009-07-17 2013-12-04 精品科技股份有限公司 Method for counting operation time of computer
JP5310819B2 (en) 2010-11-29 2013-10-09 株式会社デンソー Microcomputer
CN104123205B (en) * 2013-04-24 2018-01-23 联想(北京)有限公司 A kind of method and device of detection CPU overclocking working conditions
CN103425567B (en) * 2013-08-22 2017-03-08 合肥联宝信息技术有限公司 A kind of logger computer is truly started shooting the method and system of service life
CN104424079A (en) * 2013-08-28 2015-03-18 鸿富锦精密电子(天津)有限公司 Electronic device
CN104700870B (en) * 2013-12-06 2017-06-06 赛恩倍吉科技顾问(深圳)有限公司 The hard disk of function is indicated with use time
CN104731685B (en) * 2013-12-18 2019-03-26 深圳迈辽技术转移中心有限公司 Computer system with hard disk time state instruction function
CN103729284A (en) * 2013-12-25 2014-04-16 合肥联宝信息技术有限公司 Method and device for recording service life of computer fan
CN105677530A (en) * 2014-11-17 2016-06-15 鸿富锦精密工业(深圳)有限公司 Computer usage hour recording system and method
CN104360933B (en) * 2014-11-25 2018-04-24 绵阳市维博电子有限责任公司 A kind of device for recording board and adding up power-on time
CN104615531A (en) * 2014-12-26 2015-05-13 深圳市金立通信设备有限公司 Statistical method for accumulated terminal using duration time and network system
CN106326065B (en) * 2015-06-30 2020-02-18 腾讯科技(深圳)有限公司 Terminal use duration management method and device
CN105430588A (en) * 2015-11-02 2016-03-23 广东欧珀移动通信有限公司 Electroacoustic device using time calculation method and device and mobile terminal
CN109085514A (en) * 2018-08-16 2018-12-25 北京泰恒众信科技有限公司 Break period test method and tester
CN109490611B (en) * 2018-10-29 2021-03-05 宁波三星智能电气有限公司 Time statistical method for embedded equipment
CN112214380A (en) * 2020-11-05 2021-01-12 中国航空工业集团公司西安航空计算技术研究所 Working life monitoring method for embedded computer

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281167A (en) * 1999-07-19 2001-01-24 李义军 Working time accumulator of electric appliance and its timing control method
CN2416550Y (en) * 2000-03-21 2001-01-24 厦门华侨电子企业有限公司 Automatic timer for electric appliance use
JP2001276136A (en) * 2000-04-04 2001-10-09 Nec Infrontia Corp Device for automatically recording using time of care apparatus, and management device for bed-leaving time

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281167A (en) * 1999-07-19 2001-01-24 李义军 Working time accumulator of electric appliance and its timing control method
CN2416550Y (en) * 2000-03-21 2001-01-24 厦门华侨电子企业有限公司 Automatic timer for electric appliance use
JP2001276136A (en) * 2000-04-04 2001-10-09 Nec Infrontia Corp Device for automatically recording using time of care apparatus, and management device for bed-leaving time

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI643058B (en) * 2017-07-25 2018-12-01 緯創資通股份有限公司 Electronic device and methods for calculating power on hours
US10990156B2 (en) 2017-07-25 2021-04-27 Wistron Corp. Method for calculating power-on hours of an electronic device and electronic device utilizing the same

Also Published As

Publication number Publication date
CN1940885A (en) 2007-04-04

Similar Documents

Publication Publication Date Title
CN100419709C (en) System and method for counting use time
US7315484B2 (en) Memory controller capable of estimating memory power consumption
US7117107B2 (en) Computerized methods for data loggers
CN100478909C (en) Method and system for power measurement and management
CN102981944B (en) A kind of log storing method based on file system
CN105988363A (en) Radio wave receiver, radio-controlled timepiece, and signal obtaining method
CN101770557B (en) Method for calculating service time of software in system
US10789148B2 (en) Electronic device and method for event logging
CN102375767A (en) Computer restart testing system and method
RU2007101287A (en) ADVANCED NETWORK STATISTICS DEVICE
US8036874B2 (en) Software executing device and co-operation method
KR20180096780A (en) Method and apparatus for data mining from core trace
CN112000603B (en) Handshake protocol circuit, chip and computer equipment
CN100574217C (en) A kind of method and system of adding up the veneer reliability index
EA200501792A1 (en) GAME AUTOMATIC AND GAME SYSTEM
CN100442317C (en) Tax controlled cash register
US6871291B2 (en) Method for recording power failure time of a computer system
CN101963938B (en) System and method for recording running time of digital set top box
CN101183382A (en) Real time mass memory apparatus special for aerospace testing system
USRE48100E1 (en) Method and system for power management
CN109298992B (en) Electronic device and boot time calculation method
US20070028010A1 (en) Peripheral device utilization monitoring
CN110008105A (en) A kind of BMC time reservation method, device and electronic equipment and storage medium
CN112511156B (en) Pulse metering and storing method
CN108196617A (en) BMC time setting methods, device, system and readable storage medium storing program for executing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080917

Termination date: 20200930