Globals Library 1.0
Loading...
Searching...
No Matches
timing Module Reference

Defines vars and procs for cpu timing of code sections. More...

Data Types

type  tim

Functions/Subroutines

subroutine tim_construct (this)
 Static constructor (procedure public for type timing::tim).
subroutine tim_destroy (this)
 Static destructor (procedure public for type timing::tim).
subroutine tim_print (this, lun, add_msg, add_msg1, add_msg2)
 Info procedure (public procedure for type timing::tim).
subroutine tim_set (this, code)
 Set procedure (public procedure for type timing::tim). Sets the values of var of type timing::tim.

Detailed Description

Defines vars and procs for cpu timing of code sections.

Function/Subroutine Documentation

◆ tim_construct()

subroutine timing::tim_construct ( class(tim), intent(out) this)

Static constructor (procedure public for type timing::tim).


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

Parameters
[out]thisObject of type timing::tim calling the constructor

Definition at line 43 of file modTiming.f90.

◆ tim_destroy()

subroutine timing::tim_destroy ( class(tim), intent(inout) this)
private

Static destructor (procedure public for type timing::tim).


Definition at line 56 of file modTiming.f90.

◆ tim_print()

subroutine timing::tim_print ( 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 )
private

Info procedure (public procedure for type timing::tim).


Prints content of a variable of type timing::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.

Definition at line 76 of file modTiming.f90.

◆ tim_set()

subroutine timing::tim_set ( class(tim), intent(inout) this,
character(len=*), intent(in), optional code )
private

Set procedure (public procedure for type timing::tim). Sets the values of var of type timing::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.

Definition at line 118 of file modTiming.f90.