![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Timing the execution of a DXL script Topic Summary: Created On: 19-Sep-2007 15:23 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Thank you very much for your prompt responses!!!! | |
![]() |
|
I was wondering if there is any automatic mechanism by which the time a script takes to execute completely can be captured. Any input would be helpful. Thank you.
Regards, Pranav |
|
![]() |
|
![]() |
|
Pranav, I don't have the code with me right now, but get the script to create an output file, drop in a timestamp at the start and another at the end. Will post more detail tomorrow.
------------------------- Andrew Tagg Thales Air Systems, Melbourne Australia. andrew.tagg@thalesatm.com |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
This should give you the time that it took, in seconds, for a script to run:
int start = intOf today <code> int finish = intOf today int elapsed = finish - start print elapsed "" ------------------------- Kevin Murphy http://www.baselinesinc.com The Requirements Management Experts |
|
![]() |
|
![]() |
|
Thank you very much for your prompt responses!!!! |
|
![]() |
|
![]() |
|
Hi @all,
you may achive a more accurate value with using: getTickCount_ function. It will return the time since last boot of your machine (uptime) in milliseconds. So you can use it like the decribed "intOf today" method but with accuracy of milliseconds ![]() Greetings Reik ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
I didn't know that one Reik, all I have to do now is discover a use for millisecond timing in my scripts :-P
------------------------- Andrew Tagg Thales Air Systems, Melbourne Australia. andrew.tagg@thalesatm.com |
|
![]() |
|
![]() |
|
Attached find a debug routine I use to make sure a timed DXL starts on a second boundary. It makes time how long something takes a little more accurate. Its only useful if you are running timing tests.
Didn't kow about getTickCount_, I suppose now I'll have to write a 'StartNextTick' function. - Louie |
|
![]() |
|
![]() |
|
There's been discussion about which method is faster: regexp or string searches. Millasecond
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Timing the execution of a DXL script
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.