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.
33 lines
634 B
C++
33 lines
634 B
C++
// CurrentTime.h: interface for the CCurrentTime class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include "Utility.h"
|
|
|
|
#include "DllDefines.h"
|
|
|
|
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;
|
|
};
|