Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
fa9a883d
Commit
fa9a883d
authored
Jan 25, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use the monotonic counter in GetTickCount64.
parent
34a1426f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
kernel_main.c
dlls/kernel32/kernel_main.c
+3
-5
No files found.
dlls/kernel32/kernel_main.c
View file @
fa9a883d
...
...
@@ -179,10 +179,10 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
*/
ULONGLONG
WINAPI
GetTickCount64
(
void
)
{
LARGE_INTEGER
now
;
LARGE_INTEGER
counter
,
frequency
;
NtQuery
SystemTime
(
&
now
);
return
(
now
.
QuadPart
-
server_start_time
)
/
10000
;
NtQuery
PerformanceCounter
(
&
counter
,
&
frequency
);
return
counter
.
QuadPart
*
1000
/
frequency
.
QuadPart
;
}
...
...
@@ -199,8 +199,6 @@ ULONGLONG WINAPI GetTickCount64(void)
*
* NOTES
* The value returned will wrap around every 2^32 milliseconds.
* Under Windows, tick 0 is the moment at which the system is rebooted.
* Under Wine, tick 0 begins at the moment the wineserver process is started.
*/
DWORD
WINAPI
GetTickCount
(
void
)
{
...
...
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