看看CTime 和 CTimeSpan 类。

解决方案 »

  1.   

    使用time函数,或clock函数,头函数为"time.h",
      

  2.   

    VOID GetLocalTime(
      LPSYSTEMTIME lpSystemTime   // address of system time structure
    ); typedef struct _SYSTEMTIME {  // st 
        WORD wYear; 
        WORD wMonth; 
        WORD wDayOfWeek; 
        WORD wDay; 
        WORD wHour; 
        WORD wMinute; 
        WORD wSecond; 
        WORD wMilliseconds; 
    } SYSTEMTIME; 要比的话你可以精确到微妙。。