![]() |
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. |
1 Attachment(s)
Attached.
|
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... |
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.
|
Sorry,I did not notice the code behind!
It is exactly what I need-thank you very much!! |
All times are GMT -5. The time now is 02:44 AM. |
Copyright © 1999-2023 Kinook Software, Inc.