My Project
Public Member Functions | List of all members
mod_clock::watch_lap Interface Reference

Public Member Functions

subroutine watch_lap_noprint (MYWATCH)
 
subroutine watch_lap_print (MYWATCH, UNIT, MSG)
 

Detailed Description

Definition at line 73 of file mod_clock.f90.

Member Function/Subroutine Documentation

◆ watch_lap_noprint()

subroutine mod_clock::watch_lap::watch_lap_noprint ( type(watch MYWATCH)

Definition at line 181 of file mod_clock.f90.

181  IMPLICIT NONE
182  TYPE(WATCH) :: MYWATCH
183 
184  mywatch%COUNT_LAST = mywatch%COUNT_CURRENT
185  CALL system_clock(mywatch%COUNT_CURRENT)
186  mywatch%LAP_Count = mywatch%LAP_Count + 1
187 

◆ watch_lap_print()

subroutine mod_clock::watch_lap::watch_lap_print ( type(watch MYWATCH,
integer, intent(in)  UNIT,
character(len=*), intent(in)  MSG 
)

Definition at line 249 of file mod_clock.f90.

249  IMPLICIT NONE
250 
251 
252  TYPE(WATCH) :: MYWATCH
253  integer, intent(in) :: unit
254  Character(len=*), intent(in) :: MSG
255  INTEGER(ITIME) :: BIG_COUNT
256  REAL(DP) :: LAP_TIME
257  Character(len=16) :: ltime
258 
259 
260  CALL watch_lap_noprint(mywatch)
261  big_count = mywatch%COUNT_CURRENT - mywatch%COUNT_LAST
262  IF (big_count < 0) big_count = big_count + mywatch%COUNT_MAX
263 
264  lap_time = dble(big_count) / dble(mywatch%COUNT_RATE)
265 
266  write(ltime,'(F16.6)') lap_time
267 
268  write(unit,*) "! === "//trim(msg)//" ==="
269  write(unit,*) "! Last Lap Time(seconds):"//trim(adjustl(ltime))
270  write(unit,*) "! ==============================="
271 

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