this is what i did:
CTime startTime = CTime::GetCurrentTime();
// ... perform time-consuming task ...
CTime endTime = CTime::GetCurrentTime();
CTimeSpan elapsedTime = endTime - startTime;
This is the example given on msdn. But it doesn’t work. VS IDE underlines the CTime in red. saying that the identifier CTime undefined.
Could someone please help me?
According to MSDN, you need to
#include <atltime.h>. Did you?