Jump to content











Photo
- - - - -

Please include "Time" in WinBuilder


  • Please log in to reply
5 replies to this topic

#1 u2o

u2o

    Frequent Member

  • .script developer
  • 257 posts
  • Location:Argentina
  •  
    Argentina

Posted 20 June 2011 - 08:36 AM

Could it be included?

In WinBuilder, a control (to refresh) the current time, while it is compiling.
And also time in each log line, or at least the beginning of each script.

#2 pecd.net

pecd.net

    Silver Member

  • .script developer
  • 947 posts
  •  
    Germany

Posted 20 June 2011 - 12:29 PM

Could it be included?

In WinBuilder, a control (to refresh) the current time, while it is compiling.
And also time in each log line, or at least the beginning of each script.


time in the log is no good idea as you can not compare such log easily...

i would like to see a easy way to time how long eauch script takes...so i could easily find where optimization might be good...
Somthing like
starttimer,timername[,%initialvalue%]
and stoptimer,timername,%timeresult%

could be helpful

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 20 June 2011 - 12:44 PM

time in the log is no good idea as you can not compare such log easily...

i would like to see a easy way to time how long eauch script takes...so i could easily find where optimization might be good...
Somthing like
starttimer,timername[,%initialvalue%]
and stoptimer,timername,%timeresult%

could be helpful

:fine:
I hope to remember next time ...

@sbaeder: In the back of my mind I have the suspicion, that you have a functionalty like that.
Could it be integrated into WinBuilder?

Peter

#4 u2o

u2o

    Frequent Member

  • .script developer
  • 257 posts
  • Location:Argentina
  •  
    Argentina

Posted 20 June 2011 - 09:20 PM

time in the log is no good idea as you can not compare such log easily...i would like to see a easy way to time how long eauch script takes...so i could easily find where optimization might be good...Somthing like starttimer,timername[,%initialvalue%]and stoptimer,timername,%timeresult%could be helpful


@pecd.net: You're right. I agree, each script and have their time in the log. WinBuilder not.

So ... %StartTime% and %EndTime% in the log for the entire compilation.

In WinBuilder also be helpful, a label "clock", refreshed every second, showing the current time while compilation is running.
%RunTime% = %CurrentTime% - %StartTime%

Edited by u2o, 20 June 2011 - 09:20 PM.


#5 paraglider

paraglider

    Gold Member

  • .script developer
  • 1729 posts
  • Location:NC,USA
  •  
    United States

Posted 20 June 2011 - 11:20 PM

winbuilder already tells you how long a script took to execute.

#6 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1338 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 21 June 2011 - 01:54 AM

:fine:
I hope to remember next time ...

@sbaeder: In the back of my mind I have the suspicion, that you have a functionalty like that.
Could it be integrated into WinBuilder?

Peter

What I did was use the log file information output at the top of the log.html file, (i.e. what paraglider already mentioned) where the time for each script was spit out...So, nothing special :-(

The other "analysis" I did was also based on the log file - I just would "grep" to pick out API calls and then use tools like Excel to make pivot tables and other data manipulation to see what was called and how many times. So, while it might be nice to have more general access to a "timer", not sure it is really necessary. On the other hand, a "system" like call that put the current "time" (as a binary value) into a variable and another to format it as a human readable value could be used for many different things like this...

My "vote" is "good idea", but needs more thought on syntax and "priority" (i.e. other things like documentation and just cleaning up what we have in the "engine" might need to come first)...

Scott




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users