Source language: Translate to:

Elaptime...

Post your suggestions for future versions of NeoBook

Moderator: Neosoft Support

Elaptime...

Postby David de Argentina » Wed Jan 23, 2008 11:34 am

Hi Dave,

I think we need an action to evaluate time perfomance.

Could you consider a new action or variable like "Elaptime" in order to catch the seconds since midnight with several decimals..?

I think some like this will be usefull.

Thanks in advance,
David de Argentina
User avatar
David de Argentina
 
Posts: 1553
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Postby Neosoft Support » Wed Jan 23, 2008 12:06 pm

The seconds since midnight would be an integer value. What would the decimals be for?

Also, the Timer object includes an elapsed time variable that might do what you need.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby David de Argentina » Wed Jan 23, 2008 12:18 pm

I'm sorry i didn't say it properly...

Perhaps this sample can help understand:

Setvar "[timeStart]" "[elaptime]" or..
ElapTime "[timeStart]"

... do any kind of process...

Setvar "[timeStop]" "[elaptime]" or...
ElapTime "[timeStop]"

Math "[TimeStop] - [TimeStart]" "4" "[jobtime]"

AlertBox "End of Process" "This job was done in [jobtime] seconds"


Thanks again,
David de Argentina
User avatar
David de Argentina
 
Posts: 1553
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Postby Neosoft Support » Thu Jan 24, 2008 11:43 am

I think you can do the same thing with a Timer object. For example, set the Timer object's variable to [ElapsedTime], then:

TimerStart "Timer1" "1000"

... do any kind of process...

TimerStop "Timer1"
AlertBox "Results" "This task took [ElapsedTime] milliseconds."
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby David de Argentina » Thu Jan 24, 2008 2:09 pm

Thanks Dave,

It works fine !
User avatar
David de Argentina
 
Posts: 1553
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina


Return to NeoBook Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests