Globals Library 1.0
Loading...
Searching...
No Matches
timing::tim Type Reference

Public Member Functions

procedure, pass, public init (this)
 Static constructor (public for type tim)
 
procedure, pass, public kill (this)
 Static destructor (public for type tim)
 
procedure, pass, public info (this, lun, add_msg, add_msg1, add_msg2)
 Outputs the content of the variable (public for type tim)
 
procedure, pass, public set (this, code)
 Sets the current tim vars (public for type tim)
 

Public Attributes

real(kind=doublewct = zero
 Actual value of wall-clock-time.
 
real(kind=doubleusr = zero
 Actual value of user (cpu) time (summed across threads)
 
real(kind=doublecumwct = zero
 Cumulated value of wall-clock-time.
 
real(kind=doublecumusr = zero
 Cumulated value of user (cpu) time (summed across threads)
 
character(len=15) status
 Status variable: both command and stutus can be: start, stop, stac, accumulate and reset. Can be abbreviated using the first 3 characters of the word.
 

Member Function/Subroutine Documentation

◆ init()

procedure, pass, public timing::tim::init ( class(tim), intent(out) this)

Static constructor (public for type tim)


Instantiate (allocate if necessary) and initilize (by also reading from input file) variable of type tim.

Parameters
[out]thisObject of type tim calling the constructor

◆ kill()

procedure, pass, public timing::tim::kill ( class(tim), intent(inout) this)

Static destructor (public for type tim)


◆ info()

procedure, pass, public timing::tim::info ( class(tim), intent(in) this,
integer, intent(in) lun,
character(len=*), intent(in), optional add_msg,
character(len=*), intent(in), optional add_msg1,
character(len=*), intent(in), optional add_msg2 )

Outputs the content of the variable (public for type tim)


Prints content of a variable of type tim.

Parameters
[in]luninteger. output unit
[in]add_msgcharacter, optional. additional message to be printed.
[in]add_msg1character, optional. additional message to be printed.
[in]add_msg2character, optional. additional message to be printed.

◆ set()

procedure, pass, public timing::tim::set ( class(tim), intent(inout) this,
character(len=*), intent(in), optional code )

Sets the current tim vars (public for type tim)


Parameters
[in]codecharacter, optional. Commands to start/stop/reset/accumulate stopwatch. If the variable is not given, the value of status will be used. Admissible values for code are two up to now are:
  1. start: starts stopwatch.
  2. stop: stops stopwatch and accumulates measured timing.

Member Data Documentation

◆ wct

real(kind=double) timing::tim::wct = zero

Actual value of wall-clock-time.

◆ usr

real(kind=double) timing::tim::usr = zero

Actual value of user (cpu) time (summed across threads)

◆ cumwct

real(kind=double) timing::tim::cumwct = zero

Cumulated value of wall-clock-time.

◆ cumusr

real(kind=double) timing::tim::cumusr = zero

Cumulated value of user (cpu) time (summed across threads)

◆ status

character(len=15) timing::tim::status

Status variable: both command and stutus can be: start, stop, stac, accumulate and reset. Can be abbreviated using the first 3 characters of the word.


The documentation for this type was generated from the following file: