example1 Program

Uses

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

Calls

program~~example1~~CallsGraph program~example1 example1 proc~timer_start timer%timer_start program~example1->proc~timer_start proc~timer_stop timer%timer_stop program~example1->proc~timer_stop proc~print_time print_time proc~timer_stop->proc~print_time colorize colorize proc~print_time->colorize

Variables

Type Attributes Name Initial
type(timer) :: t

Source Code

program example1

   use fortime

   implicit none

   type(timer) :: t

   call t%timer_start()
    call sleep(1) ! Perform operations here
   call t%timer_stop()

end program example1