timer_t Derived Type

type, public :: timer_t

Wall-clock timer accumulator.

All fields default to zero / false so a freshly declared variable is ready to use without explicit initialisation.


Components

Type Visibility Attributes Name Initial
integer(kind=int64), public :: count_start = 0_int64

p: system_clock count recorded at the most recent @p timer_start call.

integer(kind=int64), public :: count_total = 0_int64

Accumulated elapsed @p system_clock counts across all start/stop pairs.

integer, public :: n_calls = 0

Number of completed start/stop pairs.

logical, public :: running = .false.

p: .true. between a @p timer_start and the corresponding @p timer_stop.