gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_clock::dcclockstart Interface Reference

Public Member Functions

subroutine dcclockstart0 (clk, err)
 

Detailed Description

Definition at line 133 of file dc_clock.f90.

Member Function/Subroutine Documentation

◆ dcclockstart0()

subroutine dc_clock::dcclockstart::dcclockstart0 ( type(clock), intent(inout)  clk,
logical, intent(out), optional  err 
)

Start measurement

Starts measurement at the point this subroutine is called.

If clk has not been initialized by DCClockCreate, an error is raised. If err is provided, .true. is returned in err and the program continues.

Parameters
[in,out]clkCLOCK type variable
[out]errError flag (optional). .true. if error occurred.

Definition at line 301 of file dc_clock.f90.

302 use dc_message, only: messagenotify
303 use dc_string, only: tochar
305 use dc_date, only: evalsec
306 !$ use omp_lib
307 implicit none
308 type(CLOCK), intent(inout):: clk
309 logical, intent(out), optional:: err
310 character(STRING):: cause_c
311 integer:: stat
312 character(*), parameter:: subname = 'DCClockStart'
313 continue
314 call beginsub(subname)
315 stat = dc_noerr
316 cause_c = 'CLOCK'
317 if (.not. clk % initialized) then
318 call messagenotify('W', subname, 'Call Create before Start in dc_clock.')
319 call dbgmessage('Ignored because input argument was not initialized.')
320 stat = dc_enotinit
321 goto 999
322 end if
323 call cpu_time(clk % start_time) ! (out)
324 !$ clk % start_time = omp_get_wtime()
325 call dbgmessage('name=%c, cpu_time=%f', &
326 & c1=trim(clk % name), d=(/clk % start_time/) )
327999 continue
328 call storeerror(stat, subname, err, cause_c)
329 call endsub(subname)
Date and time manipulation module.
Definition dc_date.f90:57
Error handling module.
Definition dc_error.f90:454
subroutine, public storeerror(number, where, err, cause_c, cause_i)
Definition dc_error.f90:891
integer, parameter, public dc_noerr
Error storage variables
Definition dc_error.f90:468
integer, parameter, public dc_enotinit
-400 or less: DC utilities errors
Definition dc_error.f90:534
Message output module.
Handling character types.
Definition dc_string.f90:83

References dc_trace::beginsub(), dc_trace::dbgmessage(), dc_error::dc_enotinit, dc_error::dc_noerr, dc_trace::endsub(), and dc_error::storeerror().

Here is the call graph for this function:

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