NuMFor 9f2ab49 (2024-04-08)
Numerical (Modern) Fortran. Library for Simple Numerical computing
timer Type Reference

Simple timer. Holds start-time, stop-time, and time-difference. More...

Public Member Functions

procedure start (t)
 start time
 
procedure stop (t)
 stop time
 
procedure show (t, unit)
 Show time.
 
generic operator (t1, t2)
 add times
 
generic operator (t1, val)
 divide time in intervals
 
generic assignment (t, val)
 assign int to time
 
generic assignment (t, t1)
 Assign a time.
 

Public Attributes

integer, dimension(7) start_date
 Start date.
 
integer, dimension(7) stop_date
 Stop date.
 
integer, dimension(7) date_elapsed
 Date-difference between start and stop.
 
real(dp), public elapsed
 Elapsed time (in seconds)
 

Detailed Description

Simple timer. Holds start-time, stop-time, and time-difference.

Member Function/Subroutine Documentation

◆ assignment() [1/2]

generic assignment ( class(timer), intent(out) t,
type(timer), intent(in) t1 )

Assign a time.

Parameters
[out]tNew time
[in]t1Original time

◆ assignment() [2/2]

generic assignment ( class(timer), intent(out) t,
integer, intent(in) val )

assign int to time

Parameters
[out]tTime
[in]valinteger time

References basic::is_inf(), basic::nf_inf, basic::nf_minf, and basic::print_msg().

Here is the call graph for this function:

◆ operator() [1/2]

generic operator ( class(timer), intent(in) t1,
class(timer), intent(in) t2 )

add times

Parameters
[in]t1first time interval
[in]t2second time interval
Returns
Resulting time

◆ operator() [2/2]

generic operator ( class(timer), intent(in) t1,
integer, intent(in) val )

divide time in intervals

Parameters
[in]t1Time
[in]valinteger
Returns
Resulting time

◆ show()

procedure show ( class(timer), intent(in) t,
integer, optional unit )

Show time.

Parameters
[in]tTimer
unitunit to output

◆ start()

procedure start ( class(timer), intent(out) t)

start time

Parameters
[out]tTimer

◆ stop()

procedure stop ( class(timer), intent(inout) t)

stop time

Parameters
[in,out]tTimer

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