Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
aa4570fe
Commit
aa4570fe
authored
May 14, 2019
by
Huw Davies
Committed by
Alexandre Julliard
May 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlGetSystemTimePrecise().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5ddcfa01
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
time.c
dlls/ntdll/time.c
+33
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
aa4570fe
...
...
@@ -680,6 +680,7 @@
@ stdcall RtlGetSaclSecurityDescriptor(ptr ptr ptr ptr)
# @ stub RtlGetSecurityDescriptorRMControl
# @ stub RtlGetSetBootStatusData
@ stdcall -ret64 RtlGetSystemTimePrecise()
@ stdcall RtlGetThreadErrorMode()
@ stdcall RtlGetUnloadEventTrace()
@ stdcall RtlGetUnloadEventTraceEx(ptr ptr ptr)
...
...
dlls/ntdll/time.c
View file @
aa4570fe
...
...
@@ -474,6 +474,39 @@ NTSTATUS WINAPI NtQuerySystemTime( PLARGE_INTEGER Time )
return
STATUS_SUCCESS
;
}
/***********************************************************************
* RtlGetSystemTimePrecise [NTDLL.@]
*
* Get a more accurate current system time.
*
* RETURNS
* The current system time.
*/
LONGLONG
WINAPI
RtlGetSystemTimePrecise
(
void
)
{
LONGLONG
time
;
#ifdef HAVE_CLOCK_GETTIME
struct
timespec
ts
;
if
(
!
clock_gettime
(
CLOCK_REALTIME
,
&
ts
))
{
time
=
ts
.
tv_sec
*
(
ULONGLONG
)
TICKSPERSEC
+
TICKS_1601_TO_1970
;
time
+=
(
ts
.
tv_nsec
+
50
)
/
100
;
}
else
#endif
{
struct
timeval
now
;
gettimeofday
(
&
now
,
0
);
time
=
now
.
tv_sec
*
(
ULONGLONG
)
TICKSPERSEC
+
TICKS_1601_TO_1970
;
time
+=
now
.
tv_usec
*
10
;
}
return
time
;
}
/******************************************************************************
* NtQueryPerformanceCounter [NTDLL.@]
*/
...
...
include/winternl.h
View file @
aa4570fe
...
...
@@ -2710,6 +2710,7 @@ NTSYSAPI NTSTATUS WINAPI RtlGetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR,PSI
NTSYSAPI
ULONG
WINAPI
RtlGetProcessHeaps
(
ULONG
,
HANDLE
*
);
NTSYSAPI
DWORD
WINAPI
RtlGetThreadErrorMode
(
void
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetSaclSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
PBOOLEAN
,
PACL
*
,
PBOOLEAN
);
NTSYSAPI
LONGLONG
WINAPI
RtlGetSystemTimePrecise
(
void
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGetVersion
(
RTL_OSVERSIONINFOEXW
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlGUIDFromString
(
PUNICODE_STRING
,
GUID
*
);
NTSYSAPI
PSID_IDENTIFIER_AUTHORITY
WINAPI
RtlIdentifierAuthoritySid
(
PSID
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment