2OOO, 24 November
NtQueryPerformanceCounter
NtQueryPerformanceCounter
NTSYSAPI
NTSTATUS
NTAPI
NtQueryPerformanceCounter(
OUT PLARGE_INTEGER PerformanceCounter,
OUT PLARGE_INTEGER PerformanceFrequency OPTIONAL );
- PerformanceCounter Result is number of
processor ticks after last reset.
- PerformanceFrequency It's number of
processor ticks per one second.
Another method of uptime calculation :
- UpTime = PerformanceCounter / PerformanceFrequency;
- Documented by:
- Sven B. Schreiber
- Tomasz Nowak
Requirements:
- Library: ntdll.lib
See also: