View previous topic :: View next topic |
Author |
Message |
pierre
Joined: 04 Feb 2007 Posts: 24
|
Posted: Sun Feb 18, 2007 12:30 am Post subject: Timing |
|
|
"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 ? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Sun Feb 18, 2007 7:01 pm Post subject: |
|
|
The same option is available in Plato, in the same place. |
|
Back to top |
|
|
pierre
Joined: 04 Feb 2007 Posts: 24
|
Posted: Sun Feb 18, 2007 7:17 pm Post subject: |
|
|
Where is the "compiler option"?
I do not find it ? (the only "option" I found is in tools-> option) |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Mon Feb 19, 2007 8:18 am Post subject: |
|
|
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? |
|
Back to top |
|
|
pierre
Joined: 04 Feb 2007 Posts: 24
|
Posted: Mon Feb 19, 2007 3:31 pm Post subject: |
|
|
You were right, it is in. 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 ! |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Mon Feb 19, 2007 10:39 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2560 Location: Sydney
|
Posted: Tue Feb 20, 2007 4:00 am Post subject: |
|
|
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 |
|
Back to top |
|
|
pierre
Joined: 04 Feb 2007 Posts: 24
|
Posted: Tue Feb 20, 2007 4:04 am Post subject: |
|
|
So if I have a straight program without any fonction or subroutine, there is no way to time my program with timing ? |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7938 Location: Salford, UK
|
Posted: Tue Feb 20, 2007 8:13 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|