Skip to content

JIWONC-CORE/tictoc_fortran

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

tictoc_fortran

TicToc routine - Fortran

Module name: mod_tictoc

Create the object:

type(tictoc)    :: ctimer

Start the timer:

call ctimer%start()

tic and toc methods:

call ctimer%tic()
! do something
call ctimer%toc()

! do anything else

call ctimer%tic()
! do something
call ctimer%toc()

To see how much time was spent doing something:

write(*,*) ctimer%t_tot

To reset the counting:

call ctimer%reset()

About

TicToc routine - Fortran

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Fortran 100.0%