You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB
C

#pragma once
//<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
class CWorkTime
{
public:
CWorkTime(void);
~CWorkTime(void);
CString GetTimeSpanStr(CTimeSpan &TimeSpan);
void StartRecordTime();
void StopRecordTime();
CTimeSpan GetTimeSpan();
int GetTimeSpanMin(CTimeSpan &TimeSpan);
void StartExactTime();
CString GetCurTime(CString Separator);
CString GetCurDate(CString Separator);
CString GetTimeSpanStr();
CString GetDateTime(CString SeparatorDate,CString SeparatorTime);
double GetTimeSpanSecond();
CString GetDateStr(CTime Time,CString Separator);
void StartBackTime(double Time1,double Time2);
CString GetLeftTimes();
bool IsBackTimeEnd(int idx);
void DelayTime(unsigned int us);
CString GetCurYear();
CString GetCurMonth();
CString GetCurDay();
private:
CString Int2Str_LeftZero(int n);
private:
CTime m_StartTime;//<2F><>ʼ<EFBFBD><CABC>ʱ<EFBFBD><CAB1>ʱ<EFBFBD><CAB1>
LARGE_INTEGER m_ExactStart;//<2F><>ȷ<EFBFBD><C8B7>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>ʼ
bool m_bRecordTime;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ڼ<EFBFBD>ʱ
double m_BackTime1Seconds;//<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
double m_BackTime2Seconds;//<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
bool m_bBackTime1End;//<2F><><EFBFBD><EFBFBD>ʱ1 <20>Ƿ<EFBFBD><C7B7>жϹ<D0B6>
};
extern CWorkTime gWorkTime;