DrBwts
Mechanical
- Nov 4, 2012
- 297
Anybody know how to get access to the system clock from within a User Subroutine?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
INTEGER :: values(8)
call date_and_time(values=values)
! From [URL unfurl="true"]https://gcc.gnu.org/onlinedocs/gfortran/DATE_005fAND_005fTIME.html[/URL]
! values(5) ... The hour of the day
! values(6) ... The minutes of the hour
! values(7) ... The seconds of the minute
! values(8) ... The milliseconds of the second