The AHA Model
Revision: 12809
Reference implementation 04 (HEDG02_04)
|
CPU timer container object for debugging and speed/performance control. Arbitrary timers can be instantiated for different parts of the code and also global. Using a specific timer (stopwatch
) is like this:
More...
Stopwatch Timer class | |
real(srp) | cpu_time_start |
All object data components private, we should never use them directly. More... | |
character(len=long_label_length) | cpu_time_title |
Optional title for the stopwatch. Useful if we use many timers and for logger. More... | |
procedure, public | start => timer_cpu_start |
Start the timer object, stopwatch is now ON. See commondata::timer_cpu_start() More... | |
procedure, public | elapsed => timer_cpu_elapsed |
Calculate the time elapsed since the stopwatch subroutine was called for this instance of the timer container object. Can be called several times showing elapsed time since the grand start. See commondata::timer_cpu_elapsed() More... | |
procedure, public | title => timer_cpu_title |
Return the title of the current timer object. See commondata::timer_cpu_title() More... | |
procedure, public | show => timer_cpu_show |
A ready to use in output function that returns a formatted string for a timer combining its title and the elapsed time. See commondata::timer_cpu_show() More... | |
procedure, public | log => timer_cpu_log |
A ready to use shortcut to be used in logger, just adds the TIMER: tag in front of the normal show output. See commondata::timer_cpu_log() More... | |
CPU timer container object for debugging and speed/performance control. Arbitrary timers can be instantiated for different parts of the code and also global. Using a specific timer (stopwatch
) is like this:
to start the stopwatch with specific title, then the function
returns the elapsed time. Then, the function stopwatch%title() outputs the title of this timer. A few other functions build on this simple functionality to provide typical shortcuts: stopwatch%show() and stopwatch%log().
Definition at line 1883 of file m_common.f90.
procedure, public commondata::timer_cpu::start |
Start the timer object, stopwatch is now ON. See commondata::timer_cpu_start()
Definition at line 1903 of file m_common.f90.
procedure, public commondata::timer_cpu::elapsed |
Calculate the time elapsed since the stopwatch subroutine was called for this instance of the timer container object. Can be called several times showing elapsed time since the grand start. See commondata::timer_cpu_elapsed()
Definition at line 1908 of file m_common.f90.
procedure, public commondata::timer_cpu::title |
Return the title of the current timer object. See commondata::timer_cpu_title()
Definition at line 1911 of file m_common.f90.
procedure, public commondata::timer_cpu::show |
A ready to use in output function that returns a formatted string for a timer combining its title and the elapsed time. See commondata::timer_cpu_show()
Definition at line 1915 of file m_common.f90.
procedure, public commondata::timer_cpu::log |
A ready to use shortcut to be used in logger, just adds the TIMER: tag in front of the normal show
output. See commondata::timer_cpu_log()
Definition at line 1919 of file m_common.f90.
real(srp) commondata::timer_cpu::cpu_time_start |
All object data components private, we should never use them directly.
Define start time for the stopwatch.
Definition at line 1893 of file m_common.f90.
character (len=long_label_length) commondata::timer_cpu::cpu_time_title |
Optional title for the stopwatch. Useful if we use many timers and for logger.
Definition at line 1899 of file m_common.f90.