SYSTEM_CLOCK — Time function¶
- SYSTEM_CLOCK()¶
Determines the
COUNTof a processor clock since an unspecified time in the past moduloCOUNT_MAX,COUNT_RATEdetermines the number of clock ticks per second. If the platform supports a monotonic clock, that clock is used and can, depending on the platform clock implementation, provide up to nanosecond resolution. If a monotonic clock is not available, the implementation falls back to a realtime clock.- Parameters
COUNT – (Optional) shall be a scalar of type
INTEGERwithINTENT(OUT).COUNT_RATE – (Optional) shall be a scalar of type
INTEGERorREAL, withINTENT(OUT).COUNT_MAX – (Optional) shall be a scalar of type
INTEGERwithINTENT(OUT).
Standard:Fortran 90 and later
Class:Subroutine
Syntax:CALL SYSTEM_CLOCK([COUNT, COUNT_RATE, COUNT_MAX])
Example:PROGRAM test_system_clock INTEGER :: count, count_rate, count_max CALL SYSTEM_CLOCK(count, count_rate, count_max) WRITE(*,*) count, count_rate, count_max END PROGRAM
See also:DATE_AND_TIME, CPU_TIME