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.
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
|
12 years ago
|
// CurrentTime.h: interface for the CCurrentTime class.
|
||
|
|
//
|
||
|
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
#if !defined(AFX_CURRENTTIME_H__51C98E48_3755_44B8_AB39_784958C1CC29__INCLUDED_)
|
||
|
|
#define AFX_CURRENTTIME_H__51C98E48_3755_44B8_AB39_784958C1CC29__INCLUDED_
|
||
|
|
|
||
|
|
#if _MSC_VER > 1000
|
||
|
|
#pragma once
|
||
|
|
#endif // _MSC_VER > 1000
|
||
|
|
|
||
|
|
#include "Utility.h"
|
||
|
|
|
||
|
|
#ifdef BUILD_MCCTRDLL
|
||
|
|
#define MCCTRDLLCLASS __declspec(dllexport)
|
||
|
|
#else
|
||
|
|
#define MCCTRDLLCLASS __declspec(dllimport)
|
||
|
|
#endif
|
||
|
|
|
||
|
|
class MCCTRDLLCLASS CCurrentTime
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
// default constructor
|
||
|
|
CCurrentTime();
|
||
|
|
|
||
|
|
// default destructor
|
||
|
|
virtual ~CCurrentTime();
|
||
|
|
|
||
|
|
// update current time
|
||
|
|
static void UpdateCurrentTime();
|
||
|
|
|
||
|
|
// get current time
|
||
|
|
static LONGLONG GetCurrentTime();
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
// high resolution performance timer
|
||
|
|
static CHighResPerformanceCounter m_hrpcTimer;
|
||
|
|
|
||
|
|
// Current Time
|
||
|
|
static LONGLONG m_lCurrentTime;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // !defined(AFX_CURRENTTIME_H__51C98E48_3755_44B8_AB39_784958C1CC29__INCLUDED_)
|