gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
dc_clock Module Reference

Monitor of CPU TIME. More...

Data Types

type  clock
interface  dcclockcreate
interface  dcclockclose
interface  dcclockstart
interface  dcclockstop
interface  dcclockputline
interface  dcclockget
interface  dcclockevalsec
interface  dcclocktochar
interface  dcclockresult
interface  operator(+)
interface  operator(-)
interface  dcclocksetname
interface  dcclockpredict
interface  create
interface  close
interface  start
interface  stop
interface  putline
interface  get
interface  evalsec
interface  tochar
interface  result
interface  set_name
interface  predict

Detailed Description

Monitor of CPU TIME.

Author
Yasuhiro MORIKAWA

Measures and displays the CPU time consumed by program processing.

Procedures List

Procedure Description
DCClockCreate Initialize CLOCK type variable
DCClockStart Start measurement
DCClockStop Pause measurement
DCClockClose Finalize CLOCK type variable
DCClockGet Get CPU time (in seconds)
DCClockEvalSec Get CPU time (in seconds) as function
DCClockToChar Convert CPU time to formatted string
DCClockPutLine Display CLOCK variable information
DCClockResult Display comprehensive CPU time information
DCClockPredict Display predicted CPU time and date to completion
DCClockSetName Reset name
operator(+) Addition (between CLOCK types)
operator(-) Subtraction (between CLOCK types)

Usage

First, define a CLOCK type variable and initialize it with DCClockCreate. Call DCClockStart at the measurement start point in your program, and call DCClockStop at the point to pause measurement. Display elapsed time with DCClockResult. Use DCClockPredict to display estimated remaining CPU time.

Note
CPU time measurement uses the cpu_time intrinsic subroutine (introduced in Fortran 95). Whether the measured CPU time is system CPU time, user CPU time, or the sum of both depends on the implementation.