Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
e7761bb1b03cbbf6b3ab0662012f4a15c433fcc7...c3c6d783f4da67a9b2a1f1ed11260ced8f0cefde
Commits (1)
Moar!
· c3c6d783
Deucе
authored
Feb 12, 2022
c3c6d783
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/xpdev/genwrap.c
src/xpdev/genwrap.c
+6
-1
No files found.
src/xpdev/genwrap.c
View file @
c3c6d783
...
...
@@ -842,11 +842,16 @@ uint64_t xp_timer64(void)
else
ret
=
-
1
;
#elif defined(_WIN32)
static
BOOL
intable
=
FALSE
;
static
BOOL
intable_tested
=
FALSE
;
LARGE_INTEGER
freq
;
LARGE_INTEGER
tick
;
if
(
QueryPerformanceFrequency
(
&
freq
)
&&
QueryPerformanceCounter
(
&
tick
))
{
static
BOOL
intable
=
(
freq
.
QuadPart
%
1000
)
==
0
;
if
(
!
intable_tested
)
{
intable
=
(
freq
.
QuadPart
%
1000
)
==
0
;
intable_tested
=
TRUE
;
}
if
(
intable
)
ret
=
tick
.
QuadPart
/
(
freq
.
QuadPart
/
1000
);
else
...
...