The routine writes the current cpu_time value. Existing files are opened
in append mode; missing files are created.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(in) | :: | this |
Timer instance whose |
||
| character(len=*), | intent(in) | :: | file_name |
Path to the output text file. |
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