forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Timing

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
pierre



Joined: 04 Feb 2007
Posts: 24

PostPosted: Sun Feb 18, 2007 12:30 am    Post subject: Timing Reply with quote

"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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7925
Location: Salford, UK

PostPosted: Sun Feb 18, 2007 7:01 pm    Post subject: Reply with quote

The same option is available in Plato, in the same place.
Back to top
View user's profile Send private message AIM Address
pierre



Joined: 04 Feb 2007
Posts: 24

PostPosted: Sun Feb 18, 2007 7:17 pm    Post subject: Reply with quote

Where is the "compiler option"?

I do not find it ? (the only "option" I found is in tools-> option)
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7925
Location: Salford, UK

PostPosted: Mon Feb 19, 2007 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
pierre



Joined: 04 Feb 2007
Posts: 24

PostPosted: Mon Feb 19, 2007 3:31 pm    Post subject: Reply with quote

You were right, it is in. Embarassed 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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7925
Location: Salford, UK

PostPosted: Mon Feb 19, 2007 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Tue Feb 20, 2007 4:00 am    Post subject: Reply with quote

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
View user's profile Send private message
pierre



Joined: 04 Feb 2007
Posts: 24

PostPosted: Tue Feb 20, 2007 4:04 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7925
Location: Salford, UK

PostPosted: Tue Feb 20, 2007 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group