-
公开(公告)号:US5557784A
公开(公告)日:1996-09-17
申请号:US413313
申请日:1995-03-30
CPC分类号: G06F11/3419 , G06F1/14 , G06F11/0757 , G06F2201/88
摘要: This disclosure relates to a method and apparatus for measuring the amount of time a personal computer system is powered on. A power on time (POT) routine is performed at a power on of the computer system. This routine sets up a timer to count the number of pre-selected time units (selected by a user) the system is powered on. The power on time count is stored in the PC's non-volatile memory. The routine sets an alarm field of the system's real time clock (RTC) to be activated after the pre-selected time unit has elapsed. A POT interrupt handler routine is installed in a chain for RTC interrupts and is invoked each time the alarm is activated (i.e., at each passage of the pre-selected time unit) while the system is powered on. When invoked, the POT interrupt handler routine increments the POT count and resets the RTC alarm to be activated after another pre-selected time unit has elapsed.
摘要翻译: 本公开涉及一种用于测量个人计算机系统通电的时间量的方法和装置。 在计算机系统的电源接通时执行通电时间(POT)例程。 该例程设置一个计时器来计算系统上电的预选时间单位数(由用户选择)。 上电时间计数存储在PC的非易失性存储器中。 该程序设置系统的实时时钟(RTC)的警报字段,以在预先选定的时间单位过去后激活。 POT中断处理程序例程安装在用于RTC中断的链中,并且在系统通电时每次激活警报(即,在预选时间单元的每次通过时)被调用。 当调用时,POT中断处理程序例程增加POT计数,并将RTC报警复位为在另一个预先选定的时间单位过去后激活。