Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep 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
Nov 4, 2012
297
Anybody know how to get access to the system clock from within a User Subroutine?

 
Replies continue below

Recommended for you

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