October 10th, 2008

fedora 蓝色小药丸

timestamp

COleDateTime: 秒级
SYSTEMTIME: 毫秒
FILETIME: 微秒(?)
DosFILETIME(?): 两秒


	inline static CString ShowTimestampPrefix()
	{
		if(!bTimestamp)
			return NULL;

		SYSTEMTIME sysdtNow;
		::GetLocalTime(&sysdtNow);
		COleDateTime dtNow = sysdtNow;
		CString strResult = dtNow.Format(DEFAULT_TIMEFORMAT);
		if(strResult.Find(_T("%_")))
		{
			CString strMillSecond;
			strMillSecond.Format(_T("%03d"), sysdtNow.wMilliseconds);
			strResult.Replace(_T("%_"), strMillSecond);
		}
		return strResult;
	}