View Full Version : Calculate the compilation time
teognost
02-21-2007, 01:40 PM
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/vbscript_ref_functions.asp
but I didn't see anything interesting.
kinook
02-21-2007, 04:27 PM
Attached.
teognost
02-22-2007, 08:01 AM
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...
kinook
02-22-2007, 12:41 PM
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.
teognost
02-22-2007, 01:31 PM
Sorry,I did not notice the code behind!
It is exactly what I need-thank you very much!!
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.