Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print out runtime

Status
Not open for further replies.

swartzism

Technical User
Sep 2, 2007
1
US
Is there a way to print out how long it took a program to run as to check optimization?

If so, is there some easy code to include which will print out the number of seconds it took?

Thanks in advance.
 
Give a try to the routine cpu_time which is part of F95 standard

DTIME and ETIME have never been portable.

François Jacq
 
I use "system_clock" as I find it to be much more accurate than "cpu_time". If I am not mistaken, that should be portable, as it is standard F95 and later (according to the gfortran manual, anyway).

--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top