반응형
    
    
    
  LARGE_INTEGER lStart, lEnd, lFreq;
if (QueryPerformanceFrequency(&lFreq))
{
	QueryPerformanceCounter(&lStart);
	// Do Something
	QueryPerformanceCounter(&lEnd);
	TRACE("%d msec", (lEnd.QuadPart-lStart.QuadPart) * 1000 / lFreq);
	TRACE("%d nsec", (lEnd.QuadPart-lStart.QuadPart) * 1000000 / lFreq);
}
else
{
	// CPU 속도가 2GHz를 초과하는 하이퍼 스레드 컴퓨터, 
	// 이중 프로세서 컴퓨터 또는 단일 프로세서 컴퓨터에서는 
	// 게임과 같은 특정 프로그램이 제대로 실행되지 않을 수 있습니다. 
	
	// Use GetTickCount()
}
반응형
    
    
    
  'Game Dev > Article' 카테고리의 다른 글
| Texture Blending (0) | 2008.09.08 | 
|---|---|
| Introducing DirectX 11 (0) | 2008.08.17 | 
| Internal Reference Count (0) | 2008.08.06 | 
| rand 함수의 올바른 분포 (0) | 2008.07.29 |