Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Calculate the compilation time (https://www.kinook.com/Forum/showthread.php?t=2304)

teognost 02-21-2007 12:40 PM

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.

kinook 02-21-2007 03:27 PM

1 Attachment(s)
Attached.

teognost 02-22-2007 07: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 11:41 AM

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 12:31 PM

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 03:44 AM.


Copyright © 1999-2023 Kinook Software, Inc.