debugutils.h

来自「A Model-View-Controller Framework that i」· C头文件 代码 · 共 43 行

H
43
字号
#pragma once

namespace SbjCore
{
	namespace Utils
	{
		namespace Debug
		{

			class AFX_EXT_CLASS HighResElapsedTimer  
			{
				//	Found on CodeProject, no copyright or license attached
				//	Author:		Chen Venkataraman (venkatar@sig.com)
				//	Date:		Wed Dec 6, 2001
			public:
				HighResElapsedTimer(LPCTSTR, bool bTimeRelease = false);
				virtual ~HighResElapsedTimer();
				
				CString GetTime();
				

			private:
				CString			m_strName;
				LARGE_INTEGER	m_llCounter;
				bool			m_bTimeRelease;

			private:
				static LONGLONG	m_llFrequency;		// Frequency setting is based hardware clock which doesn't
				// does change - so we want to set this only once

			private:
				HighResElapsedTimer(const HighResElapsedTimer&);
				HighResElapsedTimer& operator=(const HighResElapsedTimer&);
			};

		}
	}
}


//*** Modification History ***
// $Log:  $

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?