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
6e8f4f3c
Commit
6e8f4f3c
authored
Oct 18, 2004
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using gettimeofday().
parent
96d6966b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cpu.c
dlls/kernel/cpu.c
+3
-3
No files found.
dlls/kernel/cpu.c
View file @
6e8f4f3c
...
...
@@ -181,7 +181,7 @@ static void create_registry_keys( const SYSTEM_INFO *info )
*/
BOOL
WINAPI
QueryPerformanceCounter
(
PLARGE_INTEGER
counter
)
{
struct
timeval
tv
;
LARGE_INTEGER
time
;
#if defined(__i386__) && defined(__GNUC__)
if
(
IsProcessorFeaturePresent
(
PF_RDTSC_INSTRUCTION_AVAILABLE
))
{
...
...
@@ -194,8 +194,8 @@ BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER counter)
#endif
/* fall back to generic routine (ie, for i386, i486) */
gettimeofday
(
&
tv
,
NULL
);
counter
->
QuadPart
=
(
LONGLONG
)
tv
.
tv_usec
+
(
LONGLONG
)
tv
.
tv_sec
*
1000000
;
NtQuerySystemTime
(
&
time
);
counter
->
QuadPart
=
time
.
QuadPart
;
return
TRUE
;
}
...
...
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