|
-
December 5th, 2003, 04:46 AM
#1
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?
-
December 5th, 2003, 04:58 AM
#2
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
-
December 5th, 2003, 05:02 AM
#3
Try using GetSystemTime to fill a SYSTEMTIME structure.
There is a wMilliseconds field, so the accuracy should be better than CTime ...
-
December 5th, 2003, 05:09 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|