JPS6285319A - Internal timepiece correcting system for computer - Google Patents

Internal timepiece correcting system for computer

Info

Publication number
JPS6285319A
JPS6285319A JP60226161A JP22616185A JPS6285319A JP S6285319 A JPS6285319 A JP S6285319A JP 60226161 A JP60226161 A JP 60226161A JP 22616185 A JP22616185 A JP 22616185A JP S6285319 A JPS6285319 A JP S6285319A
Authority
JP
Japan
Prior art keywords
updating
time
data
update
internal clock
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.)
Pending
Application number
JP60226161A
Other languages
Japanese (ja)
Inventor
Norikazu Yonezawa
米澤 則和
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60226161A priority Critical patent/JPS6285319A/en
Publication of JPS6285319A publication Critical patent/JPS6285319A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

PURPOSE:To omit unnecessary or useless updating of an internal timepiece, and also to change an updating period by executing periodically the updating of the internal timepiece in accordance with the updating period which has been designated by a user. CONSTITUTION:A user inputs an updating period data for designating a period for updating the time of an internal timepiece 11 from an input means 11. A setting means 13 writes the inputted updating period data in a storage device. An updating time monitor means 14 starts a start means 15, when the updating period data which has been read out of the storage device and an updating monitor data have coincided. By a start of the start means 15, an updating means 16 is started. The updating means 16 updates the internal timepiece 11 by a time data of an external timepiece 20, which has been read by a read means 17. By executing the updating in this way, unnecessary or useless updating of the internal timepiece can be omitted, and also the updating period can be changed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機の内部時計補正方式に関し、特に計算機
の内部時計の時刻を外部時計から読込んだ時刻データに
よ〕周期的に更新する計算機の内部時計補正方式に関す
る。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an internal clock correction method for a computer, and particularly to a computer that periodically updates the time of the internal clock of the computer using time data read from an external clock. Regarding internal clock correction method.

〔従来の技術〕[Conventional technology]

一般に計算機ではオンラインシステムの運用等グ においてジョブのスケジ具−リンy、ジlプ処理時間の
計測など時間に関する制御を行うために。
Generally, computers are used to perform time-related controls such as measuring job scheduling and zip processing time during online system operation.

プログラムで読取シ可能な内部時計が設けられている。An internal clock is provided that can be read by the program.

この内部時計は論理回路のクロックパルスをカウントし
て作成されておシ一般に精度は余シ高くなく24時間無
停止運転等長時間運転を行っている時には、内部時計の
時刻のずれが発生する可能性がおシこれを防ぐため、よ
り精度の高い外部時計によって一定周期毎に内部時計の
時刻の補”正が行なわれていた。この補正はユーザのジ
lブなどよりも優先して行なわれていた。ま九その補正
の周期は固定されていた。
This internal clock is created by counting the clock pulses of the logic circuit, and its accuracy is generally not very high, so when operating for a long time, such as 24-hour non-stop operation, the internal clock time may deviate. In order to prevent this, the time of the internal clock was corrected at regular intervals by a more accurate external clock.This correction was done with priority over the user's clock. The period of correction was fixed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の内部時計補正方式では、固定された周期
にて内部時計の補正が優先して行われるため、この固定
周期が短かい場合には、システムの負荷が過負荷状態に
近い時点でも常に補正が行われるため、システムのスル
ープットの低下金招くことになるという欠点がめシ、ま
た固定周期が長い場合には、内部時刻と外部時刻の時刻
との差が大きくなシ、補正が行われた場合の補正値が大
きなものとなシ、内部時計の時刻、が不安定になるとい
う欠点があった。
In the conventional internal clock correction method described above, correction of the internal clock is performed with priority at a fixed cycle, so if this fixed cycle is short, the internal clock is always corrected even when the system load is close to overload. Since correction is performed, the disadvantage is that the throughput of the system will be reduced, and if the fixed period is long, the difference between the internal time and external time will be large, and the correction will be performed. However, when the correction value is large, the time on the internal clock becomes unstable.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の計算機の内部時計補正方式は、内部時計の時刻
を更新する周期を指定する更新周期デー設定手段と、前
記更新周期データに従って内部時計の時刻を更新する時
期を監視する更新時期監視手段と、該更新時期監視手段
により、起動される起動手段と、該起動手段により起動
され、外部時計から読込まれた時刻データを用いて内部
時計の更新を実行する更新手段を、該更新手段によ)起
動され、外部時計の時刻データを読込み、該時刻データ
を前記更新手段に送出する読込手段とを有している 〔実施例〕 次に本発明の実施例について図面を参照して説明する。
The internal clock correction method of the computer according to the present invention includes an update cycle data setting means for specifying a cycle for updating the time of the internal clock, and an update time monitoring means for monitoring the timing to update the time of the internal clock according to the update cycle data. , an activation means activated by the update timing monitoring means, and an update means activated by the activation means to update the internal clock using time data read from an external clock). [Embodiment] Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すブロック図でめるO 第1図において本発明の一実施例は、計算機の内部に設
けられ、その時刻データをプログラムで読取)可能な内
部時刻11の時刻を、計算機の外部に設置された外部時
計20の時刻データによって周期的に更新する計算機の
内部時計補正方式でめり、内部時計11の時刻を更新す
る周期を指定する更新周期データを入力する入力手段1
2と。
FIG. 1 is a block diagram showing an embodiment of the present invention. The time is determined by the computer's internal clock correction method that periodically updates the time using the time data of an external clock 20 installed outside the computer, and the update cycle data that specifies the cycle for updating the time of the internal clock 11 is input. Input means 1
2 and.

この入力手段12から更新周期データを入力し。Update period data is input from this input means 12.

これを記憶装置に書込む設定手段13と、この更新周期
データに従って、内部時計11の時刻を更新する時期を
監視する更新時期監視手段14と。
A setting means 13 writes this into a storage device, and an update time monitoring means 14 monitors when to update the time of the internal clock 11 according to this update cycle data.

更新時期監視手段14により起動される起動手段15と
、起動手段15によ〕起動され、外部時計21から読込
まれた時刻データを用いて内部時計11の時刻の更新を
実行する更新手段16と、j!更新段16により起動さ
れ、外部時計20の時刻データを読込み、この時刻デー
タを更新手段16に送出する読込手段17とを含んで構
成される。
a starting means 15 that is started by the update timing monitoring means 14; an updating means 16 that is started by the starting means 15 and updates the time of the internal clock 11 using the time data read from the external clock 21; j! It is configured to include a reading means 17 that is activated by the updating stage 16, reads time data from an external clock 20, and sends this time data to the updating means 16.

次に本実施例の動作について、説明すると、まず、利用
者は入力手段12から内部時計11の時刻を更新する周
期を指定する更新周期データを入力するため設定手段1
3を動作させる・設定手段13は、第2図に示すように
更新周期データ入力21にて、更新周期データを入力し
、更新周期データ記憶22にて記憶装置に書き込み、更
新監視データ初期化23にて更新監視データの初期化の
処理を行う。
Next, the operation of this embodiment will be explained. First, the user inputs update cycle data from the input means 12 that specifies the cycle for updating the time of the internal clock 11.
As shown in FIG. 2, the setting means 13 inputs the update cycle data through the update cycle data input 21, writes it into the storage device through the update cycle data storage 22, and initializes the update monitoring data 23. Initialize the update monitoring data.

一方、内部時計11は、上述動作とは非同期に一定間隔
毎に更新時期監視手段14を動作させる。
On the other hand, the internal clock 11 operates the update timing monitoring means 14 at regular intervals asynchronously with the above-mentioned operation.

更新時期監視手段14は、第3図に示すよりに。The update timing monitoring means 14 is as shown in FIG.

更新周期データ読出31にて前記設定手段13で記憶装
置に書き込まれている更新周期データを読出し、更新監
視データ読出32にて更新監視データを読出す。これら
2つのデータは更新判定33にて両者が一致しているか
どうかを比較し、両者が一致しなかった場合は内部時計
更新時期ではないとして、更新監視データ更新36にて
、更新監視データの更新を行なう。−万両者が一致した
場合は内部時計更新時期であるとして更新監視データ初
期化34にて更新監視データを初期状態に戻すとともに
起動手段起動35にて起動手段15を起動する。起動手
段起wJ35にて起動された起動手段15は第4図に示
すように更新手段起ti141にて更新手段16を起動
させる。更新手段16は、第5図に示す工うに読込手段
起動51により読込手段17を起動させる。これによっ
て読込手段17は第6図に示すように外部時計読込61
により外部時計20から時刻を読込み、これを時刻デー
タ送出62により更新手段1= 6に送出する。更新手
段16はこの外部時計20の時刻を時刻データ受理52
により受理し、これにより内部時計更新53により内部
時計11を更新する。上述の動作を繰シ返すことにより
、利用者により指定された更新周期に従って周期的に内
部時計11が更新される。
The update cycle data read 31 reads the update cycle data written in the storage device by the setting means 13, and the update monitor data read 32 reads the update monitor data. These two data are compared in update judgment 33 to see if they match, and if they do not match, it is determined that it is not time to update the internal clock, and update monitoring data is updated in update monitoring data update 36. Do the following. - If the two match, it is determined that it is time to update the internal clock, and the update monitoring data is returned to its initial state in the update monitoring data initialization 34, and the starting means 15 is started in the starting means activation 35. The starting means 15 activated by the starting means wJ35 activates the updating means 16 at the updating means starting ti141, as shown in FIG. The updating means 16 activates the reading means 17 by means of the reading means activation 51 shown in FIG. As a result, the reading means 17 reads the external clock 61 as shown in FIG.
reads the time from the external clock 20, and sends it to the update means 1=6 by the time data sending 62. The updating means 16 updates the time of this external clock 20 to the time data reception 52.
Then, the internal clock 11 is updated by the internal clock update 53. By repeating the above-described operations, the internal clock 11 is periodically updated according to the update cycle specified by the user.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、利用者によって指定され
た更新周期を基に内部時計の更新時期を設定し、この更
新周期に従って周期的に内部時計の更新を行うことによ
り、不要なまたは無駄な内部時計の更新を省くことがで
き、かつ、システム運用中動的に更新周期を変更でき、
システム全体としての応答時間の同上等負荷の軽減kg
易に行える効果がある。
As explained above, the present invention sets the update timing of the internal clock based on the update cycle specified by the user, and periodically updates the internal clock according to this update cycle, thereby eliminating unnecessary or wasteful information. It is possible to omit updating the internal clock, and the update cycle can be dynamically changed during system operation.
Same as response time of the entire system, reduction in load kg
It has an effect that is easy to perform.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例を示すブロック図、第2図は
設定手段13の動作を示す流れ図、第3図は更新周期監
視手段14の動作を示す流れ図、第4図は起動手段15
の動作を示す流れ図、第5図は更新手段16の動作を示
す流れ図、第6図は読込手段17の動作を示す流れ図で
ある。
1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the setting means 13, FIG. 3 is a flowchart showing the operation of the update cycle monitoring means 14, and FIG. 4 is a flowchart showing the operation of the activation means 15.
5 is a flow chart showing the operation of the updating means 16, and FIG. 6 is a flow chart showing the operation of the reading means 17.

Claims (1)

【特許請求の範囲】[Claims] 計算機の内部に設けられ、その時刻データをプログラム
で読取り可能な内部時計の時刻を、計算機の外部に設置
された外部時計の時刻データによって周期的に更新する
計算機の内部時計補正方式において、内部時計の時刻を
更新する周期を指定する更新周期データを入力する入力
手段と、該入力手段から前記更新周期データを入力し、
これを記憶装置に書込む設定手段と、前記更新周期デー
タに従って内部時計の時刻を更新する時期を監視する更
新時期監視手段と、該更新時期監視手段により起動され
る起動手段と、該起動手段により起動され外部時計から
読込まれた時刻データを用いて、内部時計の更新を実行
する更新手段と、該更新手段により起動され、外部時計
の時刻データを読込み、該時刻データを前記更新手段に
送出する読込手段とを含んで成り、前記入力手段より入
力された更新周期データで指定された周期に従って、外
部時計の時刻データによって、内部時計の時刻を更新す
るようにしたことを特徴とする計算機の内部時計補正方
式。
In the internal clock correction method of a computer, the time of an internal clock that is installed inside the computer and whose time data can be read by a program is periodically updated using the time data of an external clock installed outside the computer. input means for inputting update period data specifying a period for updating the time of the input means; inputting the update period data from the input means;
a setting means for writing this into a storage device; an update time monitoring means for monitoring when to update the time of the internal clock according to the update cycle data; a starting means activated by the update time monitoring means; an updating means that is started and updates the internal clock using time data read from the external clock; and an updating means that is started by the updating means, reads time data of the external clock, and sends the time data to the updating means. reading means, and updating the time of the internal clock with the time data of the external clock according to the cycle specified by the update cycle data inputted from the input means. Clock correction method.
JP60226161A 1985-10-09 1985-10-09 Internal timepiece correcting system for computer Pending JPS6285319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60226161A JPS6285319A (en) 1985-10-09 1985-10-09 Internal timepiece correcting system for computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60226161A JPS6285319A (en) 1985-10-09 1985-10-09 Internal timepiece correcting system for computer

Publications (1)

Publication Number Publication Date
JPS6285319A true JPS6285319A (en) 1987-04-18

Family

ID=16840817

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60226161A Pending JPS6285319A (en) 1985-10-09 1985-10-09 Internal timepiece correcting system for computer

Country Status (1)

Country Link
JP (1) JPS6285319A (en)

Similar Documents

Publication Publication Date Title
US5481756A (en) DMA controller mailing auto-initialize halting unit
JP2002152020A (en) Pulse signal generator
JPS62241044A (en) History information collecting device
JPS6240735B2 (en)
JPH0573296A (en) Microcomputer
JP2725419B2 (en) Counting circuit
JPS58181154A (en) Microprogram tracing device
JPS62241043A (en) History information collecting device
JPH03246603A (en) Rapid counter
JPH05334099A (en) Write circuit for state setting register
JPS63103312A (en) Timer control system
JP2536102B2 (en) Data processing device
JPH01280918A (en) Interval timer
JPH06139175A (en) Programmable peripheral controlling lsi
JPH0336605A (en) Pulse input device
JPS62105252A (en) Abnormality detecting circuit
JPH06314968A (en) Counter read control method
JPH04170654A (en) Cache memory control system
JPH06168115A (en) No operation continuing step intructing system for arithmetic processor
JPH03177914A (en) Counter device
JPH02309411A (en) Real time timer setting device
JPH0676083A (en) Timer circuit
JPH0267613A (en) Clock signal generating circuit
JPH08202582A (en) Data transferring device for microprocessor
JPS60200345A (en) Cutting system for self-diagnosis program run