mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:32:57 +00:00
Implemented NtQueryPerformanceCounter().
svn path=/trunk/; revision=4100
This commit is contained in:
parent
f979d1b237
commit
74bc05988d
1 changed files with 13 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: timer.c,v 1.56 2003/01/11 15:32:40 hbirr Exp $
|
/* $Id: timer.c,v 1.57 2003/02/02 16:55:56 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -97,7 +97,18 @@ NTSTATUS STDCALL
|
||||||
NtQueryPerformanceCounter(IN PLARGE_INTEGER Counter,
|
NtQueryPerformanceCounter(IN PLARGE_INTEGER Counter,
|
||||||
IN PLARGE_INTEGER Frequency)
|
IN PLARGE_INTEGER Frequency)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
LARGE_INTEGER PerfCounter;
|
||||||
|
LARGE_INTEGER PerfFrequency;
|
||||||
|
|
||||||
|
PerfCounter = KeQueryPerformanceCounter(&PerfFrequency);
|
||||||
|
|
||||||
|
if (Counter != NULL)
|
||||||
|
Counter->QuadPart = PerfCounter.QuadPart;
|
||||||
|
|
||||||
|
if (Frequency != NULL)
|
||||||
|
Frequency->QuadPart = PerfFrequency.QuadPart;
|
||||||
|
|
||||||
|
return(STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue