Fortran intrinsic timing routines, which is better? cpu_time or system_clock

前端 未结 4 547
再見小時候
再見小時候 2020-12-03 09:54

When timing a FORTRAN program i usually just use the command call cpu_time(t).
Then i stumbled across call system_clock([count,count_rate,count_max])<

4条回答
  •  时光取名叫无心
    2020-12-03 10:31

    I find secnds() to be the easiest way to get wall time. Its usage is almost identical to cpu_time().

    real(8)::t1,delta
    t1=secnds(0.0)
    !Do stuff
    delta=seconds(t1)
    

提交回复
热议问题