Skip to content

Instantly share code, notes, and snippets.

@scemama
Created March 1, 2015 10:02
Show Gist options
  • Save scemama/c4fe182dd6ae119cada9 to your computer and use it in GitHub Desktop.
Save scemama/c4fe182dd6ae119cada9 to your computer and use it in GitHub Desktop.
System clock
integer*8 :: cpu0, cpu1, count_rate, count_max
call system_clock(cpu0, count_rate, count_max)
! ...
call system_clock(cpu1, count_rate, count_max)
print *, real(cpu1-cpu0)/real(count_rate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment