| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Basic timing routines for Fortran programs. As far as I can tell, all of the code is F2003 compliant.
An example is provided in main.f90 in this repository but the basic outline follows.
program main
use, intrinsic :: iso_fortran_env, only : stdout=>output_unit
use ftime
IMPLICIT NONE
call ftime_init()
call ftime_start('my_timer')
! ... do something ...
call ftime_stop('my_timer')
call ftime_print(stdout)
call ftime_cleanup()
endprogram mainThe source code in mod_ftime.f90 contains Doxygen style comments. Here is also a brief description. NOTE that all subroutines and function accept an optional error output parameter that will return a nonzero error code if an error is encountered.
The code here is F2003 compliant and can should be usable with any standard-compliant compiler. Included in this repository is a Makefile and an example program in main.f90. The example can be compiled and ran with the following:
make && ./main.x
or in "debug-mode" with
METHOD=dbg make && ./main.x
| Back | FazBrowse Home | New Git URL |