dc_clock::dcclocktochar Interface Reference

Private Member Functions

character(string) function dcclocktochar0 (clk)
 

Detailed Description

Definition at line 156 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclocktochar0()

character(string) function dc_clock::dcclocktochar::dcclocktochar0 ( type(clock), intent(in)  clk)
private

Definition at line 443 of file dc_clock.f90.

443  !
444  !=== CPU 時間を適当に整形して文字型変数に変換
445  !
446  ! CPU 時間に関して適当に整形を行い, 文字型変数に変換して返します.
447  !
448  ! 第一引数 *clk* に対して DCClockCreate
449  ! による初期化が行われていない場合, 空文字が返ります.
450  !
451  use dc_string, only: cprintf
452  use dc_date, only: evalsec
453  implicit none
454  type(clock), intent(in):: clk
455  character(STRING):: result
456  character(20):: clk_name
457  continue
458  clk_name = clk % name
459  if (clk % initialized) then
460  result = cprintf(' %c%c %c', c1 = clk_name, &
461  & c2=trim(result_value_form(clk % elapsed_time)), &
462  & c3=trim(fit_unit_value(clk % elapsed_time)))
463  else
464  result = ''
465  end if
文字型変数の操作.
Definition: dc_string.f90:24

The documentation for this interface was generated from the following file: