ResetTotalTime Subroutine

public subroutine ResetTotalTime()

Sets the starting point to count the total time. IntervalTime and TotalTime are reset.

Syntax

 CALL ResetTotalTime()

Example

The following program prints the total time since the start of the program, resets the total time counter and then measures it again. A more detailed example can be found at here.

 PROGRAM resetTotalTimeExample
    USE FU_Timing, ONLY: TotalTime, ResetTotalTime
    USE FU_Prec, ONLY:dp
    IMPLICIT NONE
    WRITE(*,*) TotalTime()
    CALL ResetTotalTime()
    WRITE(*,*) TotalTime()
 END PROGRAM resetTotalTimeExample

Arguments

None

Contents

None