www.pudn.com > Observerwangdxh.zip > TimeMon.h
// TimeMon.h : interface of the CTimeMonitor class
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _TIMEMONITOR
#define _TIMEMONITOR
#include "CardioMon.h"
class CTimeMonitor : public CCardioMonitor
{
// Constructor and Destructor
public :
CTimeMonitor( CCardioSubject * );
virtual ~CTimeMonitor();
// Methods
public :
virtual BOOL Update( CSubject * );
BOOL Create( const RECT &, CWnd *, UINT );
virtual BOOL Start();
virtual VOID Stop();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTimeMonitor)
//}}AFX_VIRTUAL
// Generated message map functions
protected:
//{{AFX_MSG(CTimeMonitor)
// NOTE - the ClassWizard will add and remove member functions here.
afx_msg void OnPaint();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// Attributes
private :
INT m_nDuration;
CTimeSpan m_tsElapsedTime;
};
#endif