# US 2002/0001258 A1 · Method and apparatus for setting initial time of operating system clock

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2002/0001258 A1
- Document ID: US20020001258A1
- Status: Published application
- Kind: A1
- Application number: 09/161,287
- Filed: 1998-09-28
- Published: 2002-01-03
- Earliest claimed: 1997-09-26
- Assignees: Samsung Electronics Co., Ltd.
- Inventors: SEOK-AM KIM
- Web page: https://patentgrep.com/patent/US20020001258A1

## CPC

- G04G 99/006: {Electronic time-pieces using a microcomputer, e.g. for multi-function clocks}
- G04G 5/00: Setting, i.e. correcting or changing, the time-indication (radio-controlled time-pieces G04R)
- G06F 1/14: Time supervision arrangements, e.g. real time clock
- G04G: ELECTRONIC TIME-PIECES
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

To set the initial time in a clock managed by an operating system in a personal computer system, when the power is turned on, the ROM-BIOS of the personal computer system is checked and the operating system is booted. Next, the current time is read from a CMOS clock of the personal computer system and the time read is set as the initial time in a clock managed by the operating system. Then, the current time is read from the CMOS clock again and the read current time is compared with the time of the clock managed by the operating system. If the times do not match each other, the above reading and setting processes are repeated. Thus, the time managed by the CMOS clock and the time managed by the OS clock in a PC system can coincide so that the time managed by the OS clock can be reliable for application programs requiring an accurate real-time management.

## Claims

### Claim 1

A method for setting an initial time in a clock for an operating system in a personal computer system, comprising the steps of:
turning on power and checking a ROM-BIOS (Read Only Memory-Basic Input/Output System) of said personal computer system;
booting said operating system;
reading a current time from a CMOS clock of said personal computer system;
setting the time read from said CMOS clock as an initial time in said clock for said operating system;
reading again a current time from said CMOS clock; and
comparing the read again current time from said CMOS clock with a current time of said clock for said operating system to determine if the read again current time from said CMOS clock and the current time of said clock for said operating system match.

### Claim 2 (depends on 1)

The method as claimed in claim 1, further comprising a repeating step if the read again current time from said CMOS clock and the current time of said clock for said operating system do not match, said repeating step including repeating said steps of reading a current time from said CMOS clock of said personal computer system, setting the time read from said CMOS clock as an initial time in said clock for said operating system, reading again a current time from said CMOS clock, and comparing the read again current time from said CMOS clock with a current time of said clock for said operating system to determine if the read again current time from said CMOS clock and the current time of said clock for said operating system match.

### Claim 3 (depends on 2)

The method as claimed in claim 2, wherein said repeating step is terminated when said repeating step is repeated for a predetermined duration of a predetermined time.

### Claim 4 (depends on 2)

The method as claimed in claim 2, wherein repeating step is terminated when said repeating step is repeated for a predetermined number of time.

### Claim 5 (depends on 2)

The method as claimed in claim 2, wherein said operating system is booted from one of a disk drive of said personal computer system and a network.

### Claim 6 (depends on 1)

The method as claimed in claim 1, wherein said operating system is booted from one of a disk drive of said personal computer system and a network.

### Claim 7

A method for setting an initial time in a clock for an operating system in a personal computer system, comprising the steps of:
reading a current time from a CMOS clock of said personal computer system;
setting the time read from said CMOS clock as an initial time in said clock for said operating system;
reading again a current time from said CMOS clock; and
comparing the read again current time from said CMOS clock with a current time of said clock for said operating system to determine if the read again current time from said CMOS clock and the current time of said clock for said operating system match.

### Claim 8 (depends on 7)

The method as claimed in claim 7, further comprising a repeating step if the read again current time from said CMOS clock and the current time of said clock for said operating system do not match, said repeating step including repeating said steps of reading a current time from said CMOS clock of said personal computer system, setting the time read from said CMOS clock as an initial time in said clock for said operating system, reading again a current time from said CMOS clock, and comparing the read again current time from said CMOS clock with a current time of said clock for said operating system to determine if the read again current time from said CMOS clock and the current time for said clock of said operating system match.

### Claim 9 (depends on 8)

The method as claimed in claim 8, wherein said repeating step is terminated when said repeating step is repeated for a predetermined duration of a predetermined time.

### Claim 10 (depends on 8)

The method as claimed in claim 8, wherein said repeating step is terminated when said repeating step is repeated for a predetermined number of times.

### Claim 11

An apparatus for setting an initial time in a clock for an operating system in a personal computer system, comprising:
a CMOS clock for said personal computer system;
an operating system clock; and
an operating system of said personal computer system, said operating system having said operating system clock, said operating system for reading a current time from said CMOS clock, for setting the time read from said CMOS clock as an initial time in said operating system clock for said operating system, for reading again a current time from said CMOS clock, and for comparing the read again current time from said CMOS clock with a current time of said operating system clock for said operating system to determine if the read again current time from said CMOS clock and the current time of said operating system clock for said operating system match.

### Claim 12 (depends on 11)

The apparatus as claimed in claim 11, further comprising a ROM-BIOS (Read Only Memory-Basic Input/Output System) of said personal computer system.

### Claim 13 (depends on 12)

The apparatus as claimed in claim 12, further comprising one of a disk drive of said personal computer system and a network for booting said operating system of said personal computer system.

### Claim 14 (depends on 11)

The apparatus as claimed in claim 11, further comprising one of a disk drive of said personal computer system and a network for booting said operating system of said personal computer system.

### Claim 15 (depends on 11)

The apparatus as claimed in claim 11, wherein if the read again current time from said CMOS clock and the current time of said operating system clock for said operating system do not match, said operating system performs a repetition of reading a current time from said CMOS clock, setting the time read from said CMOS clock as an initial time in said operating system clock, reading again a current time from said CMOS clock, and comparing the read again current time from said CMOS clock with a current time of said operating system clock to determine if the read again current time from said CMOS clock and the current time of said operating system clock match.

### Claim 16 (depends on 15)

The apparatus as claimed in claim 15, wherein said operating system terminates said repetition when said repetition is performed for a predetermined duration of a predetermined time.

### Claim 17 (depends on 15)

The apparatus as claimed in claim 15, wherein said operating system terminates said repetition when said repetition is performed for a predetermined number of times.

### Claim 18 (depends on 15)

The apparatus as claimed in claim 15, further comprising a ROM-BIOS (Read Only Memory-Basic Input/Output System) of said personal computer system.

### Claim 19 (depends on 18)

The apparatus as claimed in claim 18, further comprising one of a disk drive of said personal computer system and a network for booting said operating system of said personal computer system.

### Claim 20 (depends on 15)

The apparatus as claimed in claim 15, further comprising one of a disk drive of said personal computer system and a network for booting said operating system of said personal computer system.
