Silverfrost Forums

Welcome to our forums

Timing

17 Feb 2007 11:30 #1682

'To use the Timing Analysis all that is required is to compile with the /TIMING option. This can be done within Visual Studio .NET by selecting the Project Properties and navigating to Compiler Options->Debugging->Plant timing information and set this option to Yes.'

How do we do with Plato ? Do we have to insert a line of code ? If yes which one ?Or do we have to change an option ? If yes which one ?

18 Feb 2007 6:01 #1685

The same option is available in Plato, in the same place.

18 Feb 2007 6:17 #1687

Where is the 'compiler option'?

I do not find it ? (the only 'option' I found is in tools-> option)

19 Feb 2007 7:18 #1691

The compiler options are found under the Project menu via Properties.

Have you tried reading the instructions in the help file on how to get started with Plato3?

19 Feb 2007 2:31 #1703

You were right, it is in. 😮ops: sorry !

I was reading the '/TIMER compiler option' in the FTN95 help.

I have done some test and 2 questions remains (my program has no subroutines and is very simple):

-It seems that timing does 2 tests (I have 2 times exclusive/inclusive then run total time ......) Is it normal ?

-The time my whole program took is in Total Run Time or in Timed Program ?

Thank you !

19 Feb 2007 9:39 #1708

I do not have further details apart from what is in the help file.

The subject has appeared before in this forum so you could try searching the forum and sending a email to someone who has used the feature.

20 Feb 2007 3:00 #1710

from my experience, /timing works very well, but it is based on timing at the subroutine or function interface. to achieve this you would need to chop up your program into subroutines or functions, to see how much time is spent in each different routine. ( it's easy to save all variables in a module, if required) There is an overhead for each subroutine call, of about 1.0e-6 seconds per call, so if you get to 1.0e7 calls then this may become a problem.

John Campbell

20 Feb 2007 3:04 #1711

So if I have a straight program without any fonction or subroutine, there is no way to time my program with timing ?

20 Feb 2007 7:13 #1712

There are various simple timing routines in FTN95 including CLOCK@

REAL START,FINISH CALL CLOCK@(START) ! some calculation. . . CALL CLOCK@(FINISH) PRINT *,'seconds used = ',FINISH-START

Please login to reply.