timer_write Subroutine

private subroutine timer_write(this, file_name)

The routine writes the current elapsed_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 elapsed_time value is written.

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

Path to the output text file.


Calls

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

Called by

proc~~timer_write~~CalledByGraph proc~timer_write timer%timer_write proc~run_test14 run_test14 proc~run_test14->proc~timer_write proc~run_test15 run_test15 proc~run_test15->proc~timer_write proc~run_test2 run_test2 proc~run_test2->proc~timer_write proc~run_test3 run_test3 proc~run_test3->proc~timer_write program~example2 example2 program~example2->proc~timer_write program~check check program~check->proc~run_test14 program~check->proc~run_test15 program~check->proc~run_test2 program~check->proc~run_test3

Source Code

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