ntdll: Added NtGetTickCount implementation.
This commit is contained in:
parent
bace1ef6f0
commit
2333c80500
|
@ -177,7 +177,7 @@
|
||||||
@ stdcall NtGetContextThread(long ptr)
|
@ stdcall NtGetContextThread(long ptr)
|
||||||
# @ stub NtGetDevicePowerState
|
# @ stub NtGetDevicePowerState
|
||||||
@ stub NtGetPlugPlayEvent
|
@ stub NtGetPlugPlayEvent
|
||||||
@ stub NtGetTickCount
|
@ stdcall NtGetTickCount()
|
||||||
# @ stub NtGetWriteWatch
|
# @ stub NtGetWriteWatch
|
||||||
@ stub NtImpersonateAnonymousToken
|
@ stub NtImpersonateAnonymousToken
|
||||||
@ stub NtImpersonateClientOfPort
|
@ stub NtImpersonateClientOfPort
|
||||||
|
@ -1019,7 +1019,7 @@
|
||||||
@ stdcall ZwGetContextThread(long ptr) NtGetContextThread
|
@ stdcall ZwGetContextThread(long ptr) NtGetContextThread
|
||||||
# @ stub ZwGetDevicePowerState
|
# @ stub ZwGetDevicePowerState
|
||||||
@ stub ZwGetPlugPlayEvent
|
@ stub ZwGetPlugPlayEvent
|
||||||
@ stub ZwGetTickCount
|
@ stdcall ZwGetTickCount() NtGetTickCount
|
||||||
# @ stub ZwGetWriteWatch
|
# @ stub ZwGetWriteWatch
|
||||||
# @ stub ZwImpersonateAnonymousToken
|
# @ stub ZwImpersonateAnonymousToken
|
||||||
@ stub ZwImpersonateClientOfPort
|
@ stub ZwImpersonateClientOfPort
|
||||||
|
|
|
@ -877,6 +877,20 @@ NTSTATUS WINAPI NtQueryPerformanceCounter( PLARGE_INTEGER Counter, PLARGE_INTEGE
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* NtGetTickCount (NTDLL.@)
|
||||||
|
* ZwGetTickCount (NTDLL.@)
|
||||||
|
*/
|
||||||
|
ULONG WINAPI NtGetTickCount(void)
|
||||||
|
{
|
||||||
|
struct timeval current_time;
|
||||||
|
|
||||||
|
gettimeofday(¤t_time, NULL);
|
||||||
|
return (current_time.tv_sec - server_start_time)*1000 + current_time.tv_usec/1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* TIME_GetTZAsStr [internal]
|
* TIME_GetTZAsStr [internal]
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue