Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-21-2007, 01:40 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Question Calculate the compilation time

I have a step for a C# solution compilation.I would like to write in log the time in seconds passed during the step execution.It is easy to write "Step started at ...,ended at ..." -but how can I write now many seconds passed between start and end?
I look at some VBScript Date\Time fctions here :
http://www.w3schools.com/vbscript/vb..._functions.asp
but I didn't see anything interesting.
Reply With Quote
  #2  
Old 02-21-2007, 04:27 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Attached.
Attached Files
File Type: bld elapsed.bld (633 Bytes, 1603 views)
Reply With Quote
  #3  
Old 02-22-2007, 08:01 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Thanks for answer!
But maybe I was not clear,sorry!
I do not need to pause the build for some amount of time.
I just need to know exactly the duration of execution for some step-in seconds.
My idea was to create 2 macro-TIME_START and TIME_END,to set the value of TIME_START right before starting my step,end the value of TIME_END after ending my step.
Then based on values of these 2 macros to calculate the step time in seconds.
But I do not know how to do it.
Or maybe there is another way to get directly the execution step time...
Reply With Quote
  #4  
Old 02-22-2007, 12:41 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The Wait step was just an example. Replace that with whatever type of step you want to time, using the script event code that is demonstrated.
Reply With Quote
  #5  
Old 02-22-2007, 01:31 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 200
Sorry,I did not notice the code behind!
It is exactly what I need-thank you very much!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:10 AM.


Copyright © 1999-2023 Kinook Software, Inc.