Definition at line 73 of file mod_clock.f90.
◆ watch_lap_noprint()
subroutine mod_clock::watch_lap::watch_lap_noprint |
( |
type(watch) |
MYWATCH | ) |
|
Definition at line 181 of file mod_clock.f90.
182 TYPE(WATCH) :: MYWATCH
184 mywatch%COUNT_LAST = mywatch%COUNT_CURRENT
185 CALL system_clock(mywatch%COUNT_CURRENT)
186 mywatch%LAP_Count = mywatch%LAP_Count + 1
◆ 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.
252 TYPE(WATCH) :: MYWATCH
253 integer,
intent(in) :: unit
254 Character(len=*),
intent(in) :: MSG
255 INTEGER(ITIME) :: BIG_COUNT
257 Character(len=16) :: ltime
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
264 lap_time = dble(big_count) / dble(mywatch%COUNT_RATE)
266 write(ltime,
'(F16.6)') lap_time
268 write(unit,*)
"! === "//trim(msg)//
" ===" 269 write(unit,*)
"! Last Lap Time(seconds):"//trim(adjustl(ltime))
270 write(unit,*)
"! ==============================="
The documentation for this interface was generated from the following file: