dtimer_start captures the current date_and_time values, converts them
to UTC epoch seconds, and marks the date/time timer as active. The matching
stop routine is dtimer_stop.
Note
This timer follows civil-clock time and is not guaranteed to be monotonic.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(timer), | intent(inout) | :: | this |
Timer instance whose date/time timing state is initialized. |
subroutine dtimer_start(this) class(timer), intent(inout) :: this !! Timer instance whose date/time timing state is initialized. integer :: v(8) !! Raw `date_and_time` values captured at start. call date_and_time(values=v) this%dtime_start_utc = epoch_seconds_utc(v) this%is_dtime_started = .true. end subroutine dtimer_start