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.
mitlib.pub/MITLIB/Utility/HighPerformanceSleep.h

30 lines
849 B
C++

// HighPerformanceSleep.h: interface for the CHighPerformanceSleep class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HIGHPERFORMANCESLEEP_H__3125B2DC_C899_45ED_B246_2707152535BC__INCLUDED_)
#define AFX_HIGHPERFORMANCESLEEP_H__3125B2DC_C899_45ED_B246_2707152535BC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Utility.h"
#include "AccurateTimer.h"
#ifdef BUILD_UTILITYDLL
#define UTILITYDLL __declspec(dllexport)
#else
#define UTILITYDLL __declspec(dllimport)
#endif
class UTILITYDLL CHighPerformanceSleep
{
public:
static void SleepNow(DWORD dwTime);
CHighPerformanceSleep();
virtual ~CHighPerformanceSleep();
};
#endif // !defined(AFX_HIGHPERFORMANCESLEEP_H__3125B2DC_C899_45ED_B246_2707152535BC__INCLUDED_)