Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations dmapguru on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access to System Clock with a User Subroutine?

Status
Not open for further replies.

DrBwts

Mechanical
Joined
Nov 4, 2012
Messages
297
Location
GB
Anybody know how to get access to the system clock from within a User Subroutine?

 
If anybody needs to know you can use..

Code:
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top