ctimer_write Subroutine

private subroutine ctimer_write(this, file_name)

The routine writes the current cpu_time value. Existing files are opened in append mode; missing files are created.

Type Bound

timer

Arguments

Type IntentOptional Attributes Name
class(timer), intent(in) :: this

Timer instance whose cpu_time value is written.

character(len=*), intent(in) :: file_name

Path to the output text file.


Calls

proc~~ctimer_write~~CallsGraph proc~ctimer_write timer%ctimer_write proc~write_to_file write_to_file proc~ctimer_write->proc~write_to_file

Called by

proc~~ctimer_write~~CalledByGraph proc~ctimer_write timer%ctimer_write proc~run_test17 run_test17 proc~run_test17->proc~ctimer_write proc~run_test18 run_test18 proc~run_test18->proc~ctimer_write proc~run_test5 run_test5 proc~run_test5->proc~ctimer_write proc~run_test6 run_test6 proc~run_test6->proc~ctimer_write program~example4 example4 program~example4->proc~ctimer_write program~check check program~check->proc~run_test17 program~check->proc~run_test18 program~check->proc~run_test5 program~check->proc~run_test6

Source Code

   subroutine ctimer_write(this, file_name)
      class(timer), intent(in) :: this
         !! Timer instance whose `cpu_time` value is written.
      character(*), intent(in) :: file_name
         !! Path to the output text file.
      call write_to_file(this%cpu_time, file_name)
   end subroutine ctimer_write