Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/System-time/Fortran/system-time-1.f
Normal file
13
Task/System-time/Fortran/system-time-1.f
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
integer :: start, stop, rate
|
||||
real :: result
|
||||
|
||||
! optional 1st integer argument (COUNT) is current raw system clock counter value (not UNIX epoch millis!!)
|
||||
! optional 2nd integer argument (COUNT_RATE) is clock cycles per second
|
||||
! optional 3rd integer argument (COUNT_MAX) is maximum clock counter value
|
||||
call system_clock( start, rate )
|
||||
|
||||
result = do_timed_work()
|
||||
|
||||
call system_clock( stop )
|
||||
|
||||
print *, "elapsed time: ", real(stop - start) / real(rate)
|
||||
11
Task/System-time/Fortran/system-time-2.f
Normal file
11
Task/System-time/Fortran/system-time-2.f
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue