Commit 074b7d9d authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

kernel32: Implement GetSystemTimePreciseAsFileTime() using RtlGetSystemTimePrecise().

parent aa4570fe
...@@ -754,13 +754,16 @@ BOOL WINAPI TzSpecificLocalTimeToSystemTime( ...@@ -754,13 +754,16 @@ BOOL WINAPI TzSpecificLocalTimeToSystemTime(
* *
* Get the current time in utc format. * Get the current time in utc format.
* *
* PARAMS
* time [out] Destination for the current utc time
*
* RETURNS * RETURNS
* Nothing. * Nothing.
*/ */
VOID WINAPI GetSystemTimeAsFileTime( void WINAPI GetSystemTimeAsFileTime( FILETIME *time )
LPFILETIME time) /* [out] Destination for the current utc time */
{ {
LARGE_INTEGER t; LARGE_INTEGER t;
NtQuerySystemTime( &t ); NtQuerySystemTime( &t );
time->dwLowDateTime = t.u.LowPart; time->dwLowDateTime = t.u.LowPart;
time->dwHighDateTime = t.u.HighPart; time->dwHighDateTime = t.u.HighPart;
...@@ -770,15 +773,21 @@ VOID WINAPI GetSystemTimeAsFileTime( ...@@ -770,15 +773,21 @@ VOID WINAPI GetSystemTimeAsFileTime(
/*********************************************************************** /***********************************************************************
* GetSystemTimePreciseAsFileTime (KERNEL32.@) * GetSystemTimePreciseAsFileTime (KERNEL32.@)
* *
* Get the current time in utc format, with <1 us precision. * Get the current time in utc format with greater accuracy.
*
* PARAMS
* time [out] Destination for the current utc time
* *
* RETURNS * RETURNS
* Nothing. * Nothing.
*/ */
VOID WINAPI GetSystemTimePreciseAsFileTime( void WINAPI GetSystemTimePreciseAsFileTime( FILETIME *time )
LPFILETIME time) /* [out] Destination for the current utc time */
{ {
GetSystemTimeAsFileTime(time); LARGE_INTEGER t;
t.QuadPart = RtlGetSystemTimePrecise();
time->dwLowDateTime = t.u.LowPart;
time->dwHighDateTime = t.u.HighPart;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment