gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_clock::tochar Interface Reference

Public Member Functions

character(string) function dcclocktochar0 (clk)
 

Detailed Description

Definition at line 188 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclocktochar0()

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

CPU 時間を適当に整形して文字型変数に変換

CPU 時間に関して適当に整形を行い、文字型変数に変換して返します。 clk に対して DCClockCreate による初期化が行われていない場合、 空文字が返ります。

Parameters
[in]clkCLOCK 型変数
Returns
整形された CPU 時間の文字列

Definition at line 551 of file dc_clock.f90.

552 use dc_string, only: cprintf
553 use dc_date, only: evalsec
554 implicit none
555 type(CLOCK), intent(in):: clk
556 character(STRING):: result
557 character(20):: clk_name
558 integer:: name_len
559 continue
560 clk_name = ''
561 name_len = min(len(clk_name), len_trim(clk % name))
562 if (name_len > 0) then
563 clk_name(1:name_len) = clk % name(1:name_len)
564 end if
565 if (clk % initialized) then
566 result = cprintf(' %c%c %c', c1 = clk_name, &
567 & c2=trim(result_value_form(clk % elapsed_time)), &
568 & c3=trim(fit_unit_value(clk % elapsed_time)))
569 else
570 result = ''
571 end if
日付および時刻に関する手続きを提供するモジュール
Definition dc_date.f90:57
文字型変数の操作
Definition dc_string.f90:83

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