example5 Program

Uses

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

Calls

program~~example5~~CallsGraph program~example5 example5 proc~dtimer_start timer%dtimer_start program~example5->proc~dtimer_start proc~dtimer_stop timer%dtimer_stop program~example5->proc~dtimer_stop proc~print_time print_time proc~dtimer_stop->proc~print_time proc~to_seconds to_seconds proc~dtimer_stop->proc~to_seconds colorize colorize proc~print_time->colorize

Variables

Type Attributes Name Initial
type(timer) :: t

Source Code

program example5

   use fortime

   implicit none

   type(timer) :: t

   call t%dtimer_start()
    call sleep(1) ! Perform operations here
   call t%dtimer_stop()

end program example5