Starts the timer by recording the current processor clock value. This value is used to calculate the elapsed time later.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer), | intent(inout) | :: | this |
impure subroutine timer_start(this) class(timer), intent(inout) :: this ! Get the processor clock rate call system_clock(count_rate=this%clock_rate) ! Start the timer call system_clock(count=this%clock_start) end subroutine timer_start