CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Performace

  1. #1
    Join Date
    Dec 2003
    Posts
    17

    Performace

    Hello all,
    I want to know the time elasped between two functions. The problem that faces me is that CTime, CTimeSpan measures in seconds and the elasped time will be much smaller. What shall I do?

  2. #2
    Join Date
    Apr 2003
    Location
    Athens, Greece
    Posts
    1,094
    Hmm...
    How about using the profiling feature of VC++? You let VC count each function execution time...
    See MSDN for function profiling for details.
    Briefly:
    It is available in Proffessional and Enterprise editions. For funct. profiling go to Project->Settings, Link tab, General category, Check Enable Profiling, OK [warning: This turns off increm. linking]
    Extreme situations require extreme measures

  3. #3
    Join Date
    Dec 2003
    Posts
    3
    Try using GetSystemTime to fill a SYSTEMTIME structure.
    There is a wMilliseconds field, so the accuracy should be better than CTime ...

  4. #4
    Join Date
    Nov 2002
    Location
    Israel
    Posts
    182
    What about GetTickCount or GetSystemTime functions?
    Good luck

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured