RosettaCodeData/Task/System-time/Fortran/system-time-2.f

12 lines
208 B
FortranFixed
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
real :: start, stop
real :: result
! System clock value interpreted as floating point seconds
call cpu_time( start )
result = do_timed_work()
call cpu_time( stop )
print *, "elapsed time: ", stop - start