www.pudn.com > back.rar > clock.h


//_________________________________________________________________________________ 
// 
// Clock.H 
// 
// ¼­¹ö ÄÑÁú¶§ ½Ã°£ ÀúÀå 
// ½ÃÀÛ ½Ã°£ ¸®ÅÏ ÇÔ¼ö 
// ÇöÀç ½Ã°£ È®ÀÎ ÇÔ¼ö 
// 
//_________________________________________________________________________________ 
// 
 
#ifndef _CLOCK_H_ 
	#define _CLOCK_H_ 
 
 
 
static const DWORD SECOND = 1024; 
static const DWORD MINUTE = 61440; 
static const DWORD HOUR = 3686400; 
static const DWORD DAY =  88473600; 
 
class CClock 
{ 
	public: 
		CClock(); 
		~CClock(); 
 
		void	Start_Total_Time( ); 
		DWORD	Return_Total_Time( ) const; 
		DWORD	Return_Time(); 
 
		SYSTEMTIME	Return_System_Time() { return m_systime; } 
		void	Set_System_Time( SYSTEMTIME st ) { m_systime = st; } 
 
		int		Return_CurTime() { return m_cur_time; } 
		void	Set_CurTime( int time ) { m_cur_time = time; } 
 
	private: 
		DWORD	m_total_time;			// ¼­¹ö °¡µ¿µÈ ½Ã°£ ÀúÀ庯¼ö 
		DWORD	m_time;					//  
 
		SYSTEMTIME	m_systime; 
 
		// »õº® = 0 Áö¼Ó½Ã°£1ºÐ, ¾ÆÄ§=1 4ºÐ, ³· = 2 15ºÐ, ³ëÀ»=3 1ºÐ, Àú³á=4 4ºÐ, ¹ã=5 15ºÐ 
		int		m_cur_time;				// ÇöÀç ½Ã°£..»õº®ÀÎÁö ¾ÆÄ§ÀÎÁö... 
}; 
 
 
 
 
#endif 
 
 
//_________________________________________________________________________________ 
//	 
//	end of Clock.H 
//_________________________________________________________________________________ 
//