SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: Timer?

  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Timer?

    User David Goldstein (David_Goldstein@cch-lis.com.nospam) posted:

    Hi all,

    I'm doing a script in which I need to time how long it takes to execute
    functions within our application. I need to report them in HH:MM:SS
    format. I'd also like to be able to assign the time to a variable so that
    I can write it out to an Excel spreadsheet at runtime. Does anyone know
    of a timer function that will allow reporting in this way?

    Thanks,
    Dave

    ---

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Timer?

    User Marcus Neto (marcus_neto@hotmail.com.nospam) posted:

    David,

    Try something like the following:

    SetTime=0
    TimerNamed1=Now

    Timed function

    Expected result

    TimerNamed2=now
    ActualResponseTime=TimerNamed2-TimerNamed1
    SetTime=100

    Sub your own timer variable or array names but try this format. You can then
    write the function name, time it took place and the actual response time to
    a file.

    Marcus Neto
    __________________________________________________ _______________
    Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


    ---

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.64%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:25 PM.

Copyright BetaSoft Inc.