一、参考了很多,发现下面这种很是实用,单位都是毫秒 CTime t1 = GetCurrentTime(); CTime t2 = GetCurrentTime(); CTimeSpan ts = t2 - t1;