×

Discussion Board

Results 1 to 2 of 2

Thread: Counting Time

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    19

    Counting Time

    I would like to count time between two moments.

    function()
    {
    // do something
    ........

    // start to count time from this moment
    startCount();
    }


    callbackfunction()
    {
    // end the counting and know the time elapsed
    endCount();
    }


    Is there any API for this purpose?

    Regards,
    Tommy

  2. #2
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    Maybe something like this will do:

    Code:
    TTime startTime, endTime;
    startTime.UniversalTime();
    
    // do something
    
    endTime.UniversalTime();
    TTimeIntervalMicroSeconds timeElapsed = endTime.MicroSecondsFrom(startTime);
    Lauri

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×