example3 Program

Uses

  • program~~example3~~UsesGraph program~example3 example3 module~fortime fortime program~example3->module~fortime kinds kinds module~fortime->kinds

Calls

program~~example3~~CallsGraph program~example3 example3 proc~ctimer_start timer%ctimer_start program~example3->proc~ctimer_start proc~ctimer_stop timer%ctimer_stop program~example3->proc~ctimer_stop proc~print_time print_time proc~ctimer_stop->proc~print_time colorize colorize proc~print_time->colorize

Variables

Type Attributes Name Initial
type(timer) :: t

Source Code

program example3

   use fortime

   implicit none

   type(timer) :: t

   call t%ctimer_start()
    call sleep(1) ! Perform operations here
   call t%ctimer_stop()

end program example3