Made GetSystemTimeAsFileTime return value more precise.
This commit is contained in:
parent
61ec6c1c8d
commit
08a117902f
|
@ -166,8 +166,12 @@ BOOL WINAPI SetTimeZoneInformation(const LPTIME_ZONE_INFORMATION tzinfo)
|
|||
/***********************************************************************
|
||||
* GetSystemTimeAsFileTime (KERNEL32)
|
||||
*/
|
||||
VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME systemtimeAsfiletime) {
|
||||
DOSFS_UnixTimeToFileTime(time(NULL),systemtimeAsfiletime,0);
|
||||
VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME systemtimeAsfiletime)
|
||||
{
|
||||
struct timeval now;
|
||||
gettimeofday( &now, 0 );
|
||||
/* FIXME: convert to UTC */
|
||||
DOSFS_UnixTimeToFileTime( now.tv_sec, systemtimeAsfiletime, now.tv_usec * 10 );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue