JPH05189403A - Virtual time measuring method for simulation - Google Patents

Virtual time measuring method for simulation

Info

Publication number
JPH05189403A
JPH05189403A JP161092A JP161092A JPH05189403A JP H05189403 A JPH05189403 A JP H05189403A JP 161092 A JP161092 A JP 161092A JP 161092 A JP161092 A JP 161092A JP H05189403 A JPH05189403 A JP H05189403A
Authority
JP
Japan
Prior art keywords
time
simulation
virtual time
operating system
measuring method
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
JP161092A
Other languages
Japanese (ja)
Inventor
Yasushi Takahata
泰志 高畑
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP161092A priority Critical patent/JPH05189403A/en
Publication of JPH05189403A publication Critical patent/JPH05189403A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To simply and flexibly measure the internal virtual time of simulation. CONSTITUTION:A processing routine 6 included in a simulation process 2 is started by an operating system 5 when the process 2 runs for a fixed time (with use of a CPU). Then the routine 6 advances the virtual time in the process 2. Thus it is not required to advance the time for each processing unit in the process 2. As a result, a program is simplified and at the same time the overhead is reduced.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明はコンピュータによる時
系列的なシミュレーションにおける時間の処理方法に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for processing time in a time series simulation by a computer.

【0002】[0002]

【従来の技術】図2は、従来のコンピュータによる時系
列的なシミュレーションプロセスの概念図であり、図に
おいて1はコンピュータ、2はシミュレーションプロセ
ス、3a、3bは他のプロセス、4はシミュレーション
プロセス内部の実行ステップ数カウンタを示す。
2. Description of the Related Art FIG. 2 is a conceptual diagram of a time-series simulation process by a conventional computer. In the figure, 1 is a computer, 2 is a simulation process, 3a and 3b are other processes, and 4 is a simulation process inside. The execution step number counter is shown.

【0003】次に動作について説明する。コンピュータ
1内の1つのプロセスとして時系列のシミュレーション
プロセス2及びその他のプロセス3a、3bがマルチプ
ロセスとして動作している。この時、時系列シミュレー
ションプロセス2は内部の時間、時刻情報を更新するた
めにどの程度仮想的な時間が進んだかを知るために、実
行ステップ数カウンタ4を持つ。このカウンタはシミュ
レーションの一単位が完了する毎にカウントアップさ
れ、一定数を超えると仮想的な時間が進んだことにな
る。
Next, the operation will be described. As one process in the computer 1, a time-series simulation process 2 and other processes 3a and 3b operate as a multi-process. At this time, the time-series simulation process 2 has the execution step number counter 4 in order to know how much virtual time has advanced to update the internal time and time information. This counter is incremented each time one unit of simulation is completed, and when a certain number is exceeded, it means that the virtual time has advanced.

【0004】[0004]

【発明が解決しようとする課題】従来のシミュレーショ
ンでは、シミュレーションをプロセスとして実行してい
るため、時間の概念の導入のためには、シミュレーショ
ンプロセス内部で実行ステップ数のカウンタなどを持
ち、それにより仮想時間の更新を行う必要があり、実行
ステップのカウントアップとその値のチェックというオ
ーバヘッドと、プログラムの複雑さがあった。
In the conventional simulation, the simulation is executed as a process. Therefore, in order to introduce the concept of time, the simulation process has a counter of the number of execution steps and the like. It was necessary to update the time, and there was the overhead of counting up the execution steps and checking the value, and the complexity of the program.

【0005】この発明は上記のような問題点を解消する
ためになされたもので、時間の概念を導入するための実
行ステップ数カウンタをなくすとともに、それによる処
理オーバヘッドをなくすことを目的とする。
The present invention has been made to solve the above problems, and an object thereof is to eliminate the execution step number counter for introducing the concept of time, and to eliminate the processing overhead due to it.

【0006】[0006]

【課題を解決するための手段】この発明に係るシミュレ
ーションにおける時間測定方法は、オペレーティングシ
ステムにより提供される実行時間計測機能により、シミ
ュレーションの仮想時間を測定するようにしたものであ
る。
A time measuring method in a simulation according to the present invention measures a virtual time of a simulation by an execution time measuring function provided by an operating system.

【0007】[0007]

【作用】この発明における仮想的な時間の測定はオペレ
ーティングシステムにより提供されるプロセスの実行計
測メカニズムにより起動され、プロセス自身が計測する
ものではない。
The virtual time measurement according to the present invention is started by the process execution measuring mechanism provided by the operating system and is not measured by the process itself.

【0008】[0008]

【実施例】以下、この発明の一実施例を図について説明
する。図1において、1はコンピュータ、2はシミュレ
ーションプロセス、3a、3bは他のプロセス、5は、
オペレーティングシステム、6はオペレーティングシス
テム5により起動されるシミュレーションプロセス内の
処理ルーチンである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, 1 is a computer, 2 is a simulation process, 3a and 3b are other processes, and 5 is
The operating system 6 is a processing routine in the simulation process activated by the operating system 5.

【0009】シミュレーションプロセス2は動作開始時
にオペレーティングシステム5のプロセスの実行時間の
監視機能を利用し、一定時間走行した場合、自プロセス
内の処理ルーチン6を起動するようにセットする。その
後、シミュレーションを実行するが、オペレーティング
システム5は、シミュレーションプロセス2が一定のC
PU時間を消費する毎に処理ルーチン6を起動する。処
理ルーチン6内では、シミュレーションプロセス内の仮
想時間を進める処理を行う。
The simulation process 2 makes use of the process execution time monitoring function of the operating system 5 at the start of operation, and sets the processing routine 6 in its own process to be activated when it has run for a certain time. After that, the simulation is executed.
The processing routine 6 is started every time the PU time is consumed. In the processing routine 6, processing for advancing the virtual time in the simulation process is performed.

【0010】なお、上記実施例では時系列的なシミュレ
ーションについてその仮想時間の処理方式について説明
したが、時系列でないシミュレーションにおいては、シ
ミュレーションの暴走をくい止めるためのメカニズムと
しても利用できる。
In the above embodiment, the virtual time processing method has been described for the time-series simulation, but it can also be used as a mechanism for stopping the runaway of the simulation in the non-time-series simulation.

【0011】[0011]

【発明の効果】以上のように、この発明によればシミュ
レーションにおける時間の測定方法を、オペレーティン
グシステムによるプロセスの実行時間監視機能を用いて
構成したので、プロセス自身のオーバヘッドを減らし、
また、プログラム自身を簡単にできる効果がある。
As described above, according to the present invention, since the method for measuring the time in the simulation is configured by using the execution time monitoring function of the process by the operating system, the overhead of the process itself is reduced,
Moreover, there is an effect that the program itself can be simplified.

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

【図1】この発明の一実施例におけるシミュレーション
プロセスの概念図。
FIG. 1 is a conceptual diagram of a simulation process according to an embodiment of the present invention.

【図2】従来のシミュレーションプロセスの概念図。FIG. 2 is a conceptual diagram of a conventional simulation process.

【符号の説明】[Explanation of symbols]

1 コンピュータ 2 シミュレーションプロセス 5 オペレーティングシステム 6 時間処理ルーチン 1 Computer 2 Simulation Process 5 Operating System 6 Time Processing Routine

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 シミュレーションにおいて、シミュレー
ション内部の仮想時間の測定をオペレーティングシステ
ムが提供するプロセスの実行時間監視機能を用いて実現
することを特徴とするシミュレーションにおける仮想時
間の測定方法。
1. A method for measuring virtual time in a simulation, wherein the virtual time in the simulation is measured by using a process execution time monitoring function provided by an operating system.
JP161092A 1992-01-08 1992-01-08 Virtual time measuring method for simulation Pending JPH05189403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP161092A JPH05189403A (en) 1992-01-08 1992-01-08 Virtual time measuring method for simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP161092A JPH05189403A (en) 1992-01-08 1992-01-08 Virtual time measuring method for simulation

Publications (1)

Publication Number Publication Date
JPH05189403A true JPH05189403A (en) 1993-07-30

Family

ID=11506276

Family Applications (1)

Application Number Title Priority Date Filing Date
JP161092A Pending JPH05189403A (en) 1992-01-08 1992-01-08 Virtual time measuring method for simulation

Country Status (1)

Country Link
JP (1) JPH05189403A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0640928A1 (en) 1993-08-25 1995-03-01 Casio Computer Co., Ltd. Image displaying apparatus
JPH07160853A (en) * 1993-12-13 1995-06-23 Casio Comput Co Ltd Image display device
JPH09237328A (en) * 1997-03-25 1997-09-09 Casio Comput Co Ltd Picture display device and method therefor
US5966526A (en) * 1997-03-18 1999-10-12 Kabushiki Kaisha Bandai Simulation device for fostering a virtual creature
US6213871B1 (en) * 1997-02-19 2001-04-10 Kabushiki Kaisha Bandai Nurturing simulation apparatus for virtual creatures
US6227966B1 (en) 1997-02-19 2001-05-08 Kabushiki Kaisha Bandai Simulation device for fostering a virtual creature
US7104884B2 (en) 1997-02-19 2006-09-12 Kabushiki Kaisha Bandai Breeding simulation apparatus for virtual creatures

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6118458A (en) * 1993-08-25 2000-09-12 Casio Computer Co., Ltd. Image displaying apparatus
US6633295B1 (en) 1993-08-25 2003-10-14 Casio Computer Co., Ltd. Image displaying apparatus
EP0640928A1 (en) 1993-08-25 1995-03-01 Casio Computer Co., Ltd. Image displaying apparatus
US6037952A (en) * 1993-08-25 2000-03-14 Casio Computer Co., Ltd. Image displaying apparatus
US6043822A (en) * 1993-08-25 2000-03-28 Casio Computer Co., Ltd. Apparatus for displaying images of living things to show growing and/or moving of the living things
US6061071A (en) * 1993-08-25 2000-05-09 Casio Computer Co., Ltd. Apparatus for displaying images of living things to show growth and/or movement of the living things
JPH07160853A (en) * 1993-12-13 1995-06-23 Casio Comput Co Ltd Image display device
US6227966B1 (en) 1997-02-19 2001-05-08 Kabushiki Kaisha Bandai Simulation device for fostering a virtual creature
US6213871B1 (en) * 1997-02-19 2001-04-10 Kabushiki Kaisha Bandai Nurturing simulation apparatus for virtual creatures
US6832955B2 (en) 1997-02-19 2004-12-21 Kabushiki Kaisha Bandai Breeding simulation apparatus for virtual creatures
US7104884B2 (en) 1997-02-19 2006-09-12 Kabushiki Kaisha Bandai Breeding simulation apparatus for virtual creatures
US5966526A (en) * 1997-03-18 1999-10-12 Kabushiki Kaisha Bandai Simulation device for fostering a virtual creature
JPH09237328A (en) * 1997-03-25 1997-09-09 Casio Comput Co Ltd Picture display device and method therefor

Similar Documents

Publication Publication Date Title
JPH05189403A (en) Virtual time measuring method for simulation
JP3358123B2 (en) Controller input / output simulation method and apparatus
JPH10133889A (en) Method for setting control cycle for controller, and device therefor
JP2004062613A (en) Instrument for measuring machining time of nc machine tool
SU1298753A1 (en) Device for checking execution time of program
JPS62200439A (en) Instruction execution frequency analyzing system
JP2557785Y2 (en) Single chip microcomputer
JPH01243140A (en) Controller
JPH0465729A (en) Symbolic debugger
JPH0149975B2 (en)
JPH02272947A (en) Fault monitoring system
JPS57117051A (en) Monitoring system for instruction executing time
JPH02176834A (en) Self-monitor system for program logic
JPH05197408A (en) Numerical controller
JPH04170687A (en) Microcomputer
JPH0132539B2 (en)
JPH11102298A (en) Timer control method, and its circuit and program recording medium
JPH0254319A (en) Measuring method for time interval
JPH0354645A (en) Program execution time measuring instrument
JPH0447338B2 (en)
JPH0750445B2 (en) Program debugging method
JPS6362773B2 (en)
JPS5366138A (en) Testing method for data processor
JPH0451332A (en) Process/task execution time counting circuit
JPH0394340A (en) Control conversion tracing system at the time of cpu runaway