mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Filip Navara NtGetTickCount implementation.
svn path=/trunk/; revision=9190
This commit is contained in:
parent
03cfbfef0a
commit
9acfed6d38
2 changed files with 11 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
|
||||
/* $Id: zw.h,v 1.22 2004/04/09 20:03:11 navaraf Exp $
|
||||
/* $Id: zw.h,v 1.23 2004/04/20 20:39:19 jimtabor Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -4799,10 +4799,10 @@ NtFlushVirtualMemory(
|
|||
* UpTime = Number of clock ticks since boot.
|
||||
* RETURNS: Status
|
||||
*/
|
||||
NTSTATUS
|
||||
ULONG
|
||||
STDCALL
|
||||
NtGetTickCount(
|
||||
PULONG UpTime
|
||||
VOID
|
||||
);
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: timer.c,v 1.71 2004/04/18 00:52:57 jimtabor Exp $
|
||||
/* $Id: timer.c,v 1.72 2004/04/20 20:38:41 jimtabor Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -236,21 +236,18 @@ KeQueryInterruptTime(PLARGE_INTEGER CurrentTime)
|
|||
|
||||
}
|
||||
|
||||
|
||||
NTSTATUS STDCALL
|
||||
NtGetTickCount (PULONG UpTime)
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
ULONG
|
||||
STDCALL
|
||||
NtGetTickCount(VOID)
|
||||
{
|
||||
LARGE_INTEGER TickCount;
|
||||
if (UpTime == NULL)
|
||||
{
|
||||
return(STATUS_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
KeQueryTickCount(&TickCount);
|
||||
return(MmCopyToCaller(UpTime, &TickCount.u.LowPart, sizeof(*UpTime)));
|
||||
return TickCount.u.LowPart;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue