0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_timer.f90 File Reference

Timing routines. More...

Go to the source code of this file.

Modules

module  mo_timer
 Timing routines.
 

Functions/Subroutines

subroutine, public mo_timer::timer_check (timer)
 Check a timer.
 
subroutine, public mo_timer::timer_clear (timer)
 Reset a timer.
 
real(sp) function, public mo_timer::timer_get (timer)
 Return a timer.
 
subroutine, public mo_timer::timer_print (timer)
 Print a timer.
 
subroutine, public mo_timer::timer_start (timer)
 Start a timer.
 
subroutine, public mo_timer::timer_stop (timer)
 Stop a timer.
 
subroutine, public mo_timer::timers_init
 Initialise timer module.
 

Variables

integer(i4), parameter, public mo_timer::max_timers = 500
 max number of timers allowed
 
integer(i4), save, public mo_timer::cycles_max
 max value of clock allowed by system
 
real(sp), save, public mo_timer::clock_rate
 clock_rate in seconds for each cycle
 
integer(i4), dimension(max_timers), save, public mo_timer::cycles1
 cycle number at start for each timer
 
integer(i4), dimension(max_timers), save, public mo_timer::cycles2
 cycle number at stop for each timer
 
real(sp), dimension(max_timers), save, public mo_timer::cputime
 accumulated cpu time in each timer
 
character(len=8), dimension(max_timers), save, public mo_timer::status
 timer status string
 

Detailed Description

Timing routines.

This module uses F90 cpu time routines to allowing setting of multiple CPU timers.

Changelog
  • Matthias Cuntz, Aug. 2012
  • Matthias Cuntz, Jan. 2013
    • clear one or all timers
Authors
Matthias Cuntz - from timers.f (c) the Regents of the University of Californi
Date
Dec 2012

Definition in file mo_timer.f90.