2008년 05월 24일
GetTickCount() Function
GetTickCount () 함수
: 시스템이 시작된후 경과된 시간을 밀리세컨드( 1/1000초 )로 반환해주는 함수
함수원형
DWORD WINAPI GetTrickCount(void);
인자
없음 'ㅅ'
리턴값
시스템시작후 경과된 시간을 밀리세컨드값으로 반환
필요 헤더,라이브러리, dll
Windows.h
Kernel32.lib.
Kernel32.dll.
MSDN :
GetTickCount() Function
Retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.
Syntax
DWORD WINAPI GetTickCount(void);
Parameters
This function has no parameters.
Return Value
The return value is the number of milliseconds that have elapsed since the system was started.
Remarks
The resolution is limited to the resolution of the system timer. This value is also affected by adjustments made by the GetSystemTimeAdjustment function.
The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days. To avoid this problem, use GetTickCount64. Otherwise, check for an overflow condition when comparing times.
If you need a higher resolution timer, use a multimedia timer or a high-resolution timer.
To obtain the time elapsed since the computer was started, retrieve the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8-byte value. For more information, see Performance Counters.
Requirements
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Winbase.h; include Windows.h.
Library Use Kernel32.lib.
DLL Requires Kernel32.dll.
: 시스템이 시작된후 경과된 시간을 밀리세컨드( 1/1000초 )로 반환해주는 함수
함수원형
DWORD WINAPI GetTrickCount(void);
인자
없음 'ㅅ'
리턴값
시스템시작후 경과된 시간을 밀리세컨드값으로 반환
필요 헤더,라이브러리, dll
Windows.h
Kernel32.lib.
Kernel32.dll.
MSDN :
GetTickCount() Function
Retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.
Syntax
DWORD WINAPI GetTickCount(void);
Parameters
This function has no parameters.
Return Value
The return value is the number of milliseconds that have elapsed since the system was started.
Remarks
The resolution is limited to the resolution of the system timer. This value is also affected by adjustments made by the GetSystemTimeAdjustment function.
The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days. To avoid this problem, use GetTickCount64. Otherwise, check for an overflow condition when comparing times.
If you need a higher resolution timer, use a multimedia timer or a high-resolution timer.
To obtain the time elapsed since the computer was started, retrieve the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA. The value returned is an 8-byte value. For more information, see Performance Counters.
Requirements
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
Header Declared in Winbase.h; include Windows.h.
Library Use Kernel32.lib.
DLL Requires Kernel32.dll.
이 글과 관련있는 글을 자동검색한 결과입니다 [?]
- WINDOWS SYSTEM DLL 설명들 by 나야꼴통
- 트로픽썬더 트레일러 by 마회장
- netdump by ydhoney
- 비스타와 Overlay Mixer by 이카로스
- Density estimate using a kernel smoothing method by Kingdom™
# by | 2008/05/24 12:41 | API & MFC | 트랙백 | 덧글(0)


























☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]