How can I count a millisecond when a certain function (called repeatedly) takes?
I thought:
CTime::GetCurrentTM() before,
CTime::GetCurrentTM() after,
And then paste the result into CTimeSpan diff = after - before .
Lastly, save this diff for the global member that sums up all the diff, since I want to know the total time this function takes.
but it will give an answer in seconds, not milliseconds.
source share