Hello
If I want to hard code into a program a routine to output how long the program to complete the whole task, is there a simple routine for that?
I checked the help and I assume it must work around the use of CPU_TIME to determine how long the program is active?
Basically how does one map:
Program-start to program-end as a timer?
REAL(3) START,FINISH START= CPU_CLOCK@()
! some calculation. . .INSERT MAIN PROGRAM CODE HERE
FINISH= CPU_CLOCK@() PRINT *,FINISH-START,'clocks taken'
or
REAL TIME1, TIME2 CALL CPU_TIME(TIME1) ! Processing... CALL CPU_TIME(TIME2) PRINT *, 'Processing time was ', TIME2-TIME1, ' seconds'
I think the CPU_CLOCK looks right, is that the way to time a program run?
A proper example program would help, not too sure where the thing goes!
Cheers Lester