본문 바로가기
C++ 200제/코딩 IT 정보

MFC 현재 시간 측정 구하기, 마우스 커서 없애기

by vicddory 2018. 3. 2.

MFC 현재 시간 측정 구하기, 마우스 커서 없애기


딱히 설명할 게 없어서 소스만 남깁니다.


1. MFC 현재 시간 측정 구하기


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>  
#include <windows.h>
 
LARGE_INTEGER liCounter1, liCounter2, liFrequency;
 
// retrieves the frequency of the high-resolution performance counter
QueryPerformanceFrequency(&liFrequency);
 
// Start
QueryPerformanceCounter(&liCounter1);
 
// ....blabla
 
QueryPerformanceCounter(&liCounter2); // End
 
TRACE(_T("Time : %f\r\n"),
        (double)(liCounter2.QuadPart - liCounter1.QuadPart) / (double)liFrequency.QuadPart);
cs


MFC 현재 시간 측정 구하기, 마우스 커서 없애기MFC 현재 시간 측정 구하기, 마우스 커서 없애기


2. MFC 마우스 커서 없애기


1
2
SetCursor(NULL);
ShowCursor(FALSE);
cs


MFC 현재 시간 측정 구하기, 마우스 커서 없애기

댓글