Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Pranav Chandrasekhar, on Wednesday, September 19, 2007 9:56 PM

Answer:

Thank you very much for your prompt responses!!!!

Regards,

Pranav

 19-Sep-2007 15:23
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

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
Report this to a Moderator Report this to a Moderator
 19-Sep-2007 16:07
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

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
Report this to a Moderator Report this to a Moderator
 19-Sep-2007 16:10
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Try this.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 19-Sep-2007 17:10
User is offline View Users Profile Print this message


Kevin Murphy

Posts: 206
Joined: 15-Jul-2005

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
Report this to a Moderator Report this to a Moderator
 19-Sep-2007 21:56
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

Answer Answer

Thank you very much for your prompt responses!!!!

Regards,

Pranav

Report this to a Moderator Report this to a Moderator
 20-Sep-2007 11:09
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

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
Report this to a Moderator Report this to a Moderator
 20-Sep-2007 13:30
User is offline View Users Profile Print this message


Andrew Tagg

Posts: 151
Joined: 26-Oct-2004

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
Report this to a Moderator Report this to a Moderator
 21-Sep-2007 00:51
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 21-Sep-2007 14:43
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

There's been discussion about which method is faster: regexp or string searches. Millasecond
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.