dc_clock::get Interface Reference

Private Member Functions

subroutine dcclockgetr (clk, sec, err)
 
subroutine dcclockgetd (clk, sec, err)
 

Detailed Description

Definition at line 192 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclockgetd()

subroutine dc_clock::get::dcclockgetd ( type(clock), intent(in)  clk,
real(dp), intent(out)  sec,
logical, intent(out), optional  err 
)
private

Definition at line 385 of file dc_clock.f90.

385  !
386  !=== CPU 時間 (単位: 秒) の取得
387  !
388  ! CPU 時間 (単位: 秒) を *sec* に取得します.
389  !
390  ! 第一引数 *clk* に対して DCClockCreate による初期化が行われていない場合,
391  ! エラーを発生させます.
392  ! 第二引数 *err* を与える場合には *err* に .true. が返り,
393  ! プログラムは続行されます.
394  !
395  use dc_types, only: dp
396  use dc_string, only: cprintf
397  use dc_message, only: messagenotify
398  use dc_date, only: evalsec
400  implicit none
401  type(clock), intent(in):: clk
402  real(DP), intent(out):: sec
403  logical, intent(out), optional:: err
404  character(STRING):: cause_c
405  integer:: stat
406  character(*), parameter:: subname = 'DCClockGetD'
407  continue
408  call beginsub(subname)
409  stat = dc_noerr
410  cause_c = 'CLOCK'
411  if (.not. clk % initialized) then
412  call messagenotify('W', subname, 'Call Create before Get in dc_clock.')
413  call dbgmessage('Ignored because input argument was not initialized.')
414  stat = dc_enotinit
415  goto 999
416  end if
417  sec = clk % elapsed_time
418  call dbgmessage('name=%c, return sec=<%f>', &
419  & c1=trim(clk % name), d=(/sec/))
420 999 continue
421  call storeerror(stat, subname, err, cause_c)
422  call endsub(subname)
integer, parameter, public dc_enotinit
Definition: dc_error.f90:557
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition: dc_error.f90:830
integer, parameter, public dc_noerr
Definition: dc_error.f90:509
integer, parameter, public dp
倍精度実数型変数
Definition: dc_types.f90:83
文字型変数の操作.
Definition: dc_string.f90:24
種別型パラメタを提供します。
Definition: dc_types.f90:49

◆ dcclockgetr()

subroutine dc_clock::get::dcclockgetr ( type(clock), intent(in)  clk,
real, intent(out)  sec,
logical, intent(out), optional  err 
)
private

Definition at line 346 of file dc_clock.f90.

346  !
347  !=== CPU 時間 (単位: 秒) の取得
348  !
349  ! CPU 時間 (単位: 秒) を *sec* に取得します.
350  !
351  ! 第一引数 *clk* に対して DCClockCreate による初期化が行われていない場合,
352  ! エラーを発生させます. *err* を与える場合には *err* に .true. が返り,
353  ! プログラムは続行されます.
354  !
355  use dc_types, only: dp
356  use dc_message, only: messagenotify
357  use dc_date, only: evalsec
358  use dc_string, only: cprintf
360  implicit none
361  type(clock), intent(in):: clk
362  real, intent(out):: sec
363  logical, intent(out), optional:: err
364  character(STRING):: cause_c
365  integer:: stat
366  character(*), parameter:: subname = 'DCClockGetR'
367  continue
368  call beginsub(subname)
369  stat = dc_noerr
370  cause_c = 'CLOCK'
371  if (.not. clk % initialized) then
372  call messagenotify('W', subname, 'Call Create before Get in dc_clock.')
373  call dbgmessage('Ignored because input argument was not initialized.')
374  stat = dc_enotinit
375  goto 999
376  end if
377  sec = clk % elapsed_time
378  call dbgmessage('name=%c, return sec=<%r>', &
379  & c1=trim(clk % name), r=(/sec/))
380 999 continue
381  call storeerror(stat, subname, err, cause_c)
382  call endsub(subname)
integer, parameter, public dc_enotinit
Definition: dc_error.f90:557
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition: dc_error.f90:830
integer, parameter, public dc_noerr
Definition: dc_error.f90:509
integer, parameter, public dp
倍精度実数型変数
Definition: dc_types.f90:83
文字型変数の操作.
Definition: dc_string.f90:24
種別型パラメタを提供します。
Definition: dc_types.f90:49

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