VC Log中输出时间的方法

// Get time SYSTEMTIME st; ::GetLocalTime(&st); CString m_sTimeName = ""; m_sTimeName.Format("%04d/%02d/%02d %02d:%02d:%02d.%d", st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond, st.wMilliseconds); TRACE("%s ********** OnPaint() *********/n", m_sTimeName);

你可能感兴趣的:(VC Log中输出时间的方法)