How can i count the millisecond a certain function (called repeatedly) takes ?
I thought of:
CTime::GetCurrentTM()
before,
CTime::GetCurrentTM()
after,
And then insert the result to CTimeSpan diff = after - before
.
Finally store that diff to global member that sum all diffs since i want to know the total time this function spent.
but it will give the answer in seconds and not milliseconds.