Definition at line 149 of file dc_clock.f90.
◆ dcclocktochar0()
| character(string) function dc_clock::dcclocktochar::dcclocktochar0 |
( |
type(clock), intent(in) |
clk | ) |
|
CPU 時間を適当に整形して文字型変数に変換
CPU 時間に関して適当に整形を行い、文字型変数に変換して返します。 clk に対して DCClockCreate による初期化が行われていない場合、 空文字が返ります。
- Parameters
-
- Returns
- 整形された CPU 時間の文字列
Definition at line 555 of file dc_clock.f90.
558 implicit none
559 type(CLOCK), intent(in):: clk
560 character(STRING):: result
561 character(20):: clk_name
562 integer:: name_len
563 continue
564 clk_name = ''
565 name_len = min(len(clk_name), len_trim(clk % name))
566 if (name_len > 0) then
567 clk_name(1:name_len) = clk % name(1:name_len)
568 end if
569 if (clk % initialized) then
570 result =
cprintf(
' %c%c %c', c1 = clk_name, &
571 & c2=trim(result_value_form(clk % elapsed_time)), &
572 & c3=trim(fit_unit_value(clk % elapsed_time)))
573 else
574 result = ''
575 end if
The documentation for this interface was generated from the following file:
- /build/gtool5-1.0.0~rc5/debian/build-parallel/src/dc_utils/dc_clock.f90