GetTickCount
E724282
GetTickCount is a Windows API function that returns the number of milliseconds that have elapsed since the system was started, commonly used for timing and measuring intervals in applications.
Statements (48)
| Predicate | Object |
|---|---|
| instanceOf | Windows API function ⓘ |
| availability |
Windows services
NERFINISHED
ⓘ
console applications ⓘ desktop applications ⓘ some Windows Store / UWP contexts via compatibility APIs ⓘ |
| availableOn | Microsoft Windows NERFINISHED ⓘ |
| callingConvention | WINAPI ⓘ |
| category | time management function ⓘ |
| declaredInHeader | windows.h ⓘ |
| definedInLibrary | Kernel32.dll NERFINISHED ⓘ |
| documentationSite | Microsoft Learn NERFINISHED ⓘ |
| errorReporting | does not provide extended error information via GetLastError ⓘ |
| exportedBy | Kernel32.dll NERFINISHED ⓘ |
| hasParameter | none ⓘ |
| hasSuccessor | GetTickCount64 ⓘ |
| headerLanguage | C/C++ ⓘ |
| introducedFor | timing and measuring intervals in applications ⓘ |
| languageBinding |
C
ⓘ
C++ NERFINISHED ⓘ |
| limitation | 32-bit tick count subject to overflow ⓘ |
| linkRequirement | Kernel32.lib NERFINISHED ⓘ |
| measures | elapsed time since system startup ⓘ |
| monotonicWithinWrap | non-decreasing until wraparound occurs ⓘ |
| namespace | global (C API) NERFINISHED ⓘ |
| parameterCount | 0 ⓘ |
| partOf | Windows API NERFINISHED ⓘ |
| platform |
Win32
NERFINISHED
ⓘ
Win64 NERFINISHED ⓘ |
| recommendedAlternativeForNewCode | GetTickCount64 NERFINISHED ⓘ |
| relatedFunction |
GetTickCount64
NERFINISHED
ⓘ
QueryPerformanceCounter NERFINISHED ⓘ QueryPerformanceFrequency NERFINISHED ⓘ |
| requires | Windows operating system ⓘ |
| resolution |
depends on system timer resolution
ⓘ
typically around 10 to 16 milliseconds on many systems ⓘ |
| returnDescription | number of milliseconds that have elapsed since the system was started ⓘ |
| returns | DWORD ⓘ |
| returnTypeWidth | 32-bit unsigned integer ⓘ |
| threadSafety | thread-safe ⓘ |
| timeOrigin | system startup ⓘ |
| timeUnit | milliseconds ⓘ |
| usedFor |
basic profiling
ⓘ
measuring time intervals between events ⓘ performance measurement in applications ⓘ simple timing operations ⓘ timeout calculations ⓘ |
| wrapBehavior | counter value overflows and restarts from zero ⓘ |
| wrapsAround | approximately every 49.7 days ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.