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
46e922bb
Commit
46e922bb
authored
Sep 08, 2004
by
Uwe Bonnes
Committed by
Alexandre Julliard
Sep 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added MSVCRT_CLOCKS_PER_SEC define.
parent
13088b89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
msvcrt.h
dlls/msvcrt/msvcrt.h
+2
-0
headers.c
dlls/msvcrt/tests/headers.c
+1
-0
time.c
dlls/msvcrt/time.c
+1
-1
No files found.
dlls/msvcrt/msvcrt.h
View file @
46e922bb
...
...
@@ -543,6 +543,8 @@ struct MSVCRT__stati64 {
#define MSVCRT__PC_53 0x00010000
#define MSVCRT__PC_64 0x00000000
#define MSVCRT_CLOCKS_PER_SEC 1000
void
MSVCRT_free
(
void
*
);
void
*
MSVCRT_malloc
(
MSVCRT_size_t
);
void
*
MSVCRT_calloc
(
MSVCRT_size_t
,
MSVCRT_size_t
);
...
...
dlls/msvcrt/tests/headers.c
View file @
46e922bb
...
...
@@ -358,6 +358,7 @@ void test_defines()
CHECK_DEF
(
"LC_TIME"
,
LC_TIME
,
MSVCRT_LC_TIME
);
CHECK_DEF
(
"LC_MIN"
,
LC_MIN
,
MSVCRT_LC_MIN
);
CHECK_DEF
(
"LC_MAX"
,
LC_MAX
,
MSVCRT_LC_MAX
);
CHECK_DEF
(
"CLOCKS_PER_SEC"
,
CLOCKS_PER_SEC
,
MSVCRT_CLOCKS_PER_SEC
);
CHECK_DEF
(
"_HEAPEMPTY"
,
_HEAPEMPTY
,
MSVCRT__HEAPEMPTY
);
CHECK_DEF
(
"_HEAPOK"
,
_HEAPOK
,
MSVCRT__HEAPOK
);
CHECK_DEF
(
"_HEAPBADBEGIN"
,
_HEAPBADBEGIN
,
MSVCRT__HEAPBADBEGIN
);
...
...
dlls/msvcrt/time.c
View file @
46e922bb
...
...
@@ -203,7 +203,7 @@ MSVCRT_clock_t MSVCRT_clock(void)
ktime
=
((
ULONGLONG
)
ftk
.
dwHighDateTime
<<
32
)
|
ftk
.
dwLowDateTime
;
utime
=
((
ULONGLONG
)
ftu
.
dwHighDateTime
<<
32
)
|
ftu
.
dwLowDateTime
;
clock
=
(
(
utime
+
ktime
)
/
TICKSPERSEC
)
*
CLOCKS_PER_SEC
;
clock
=
(
utime
+
ktime
)
/
(
TICKSPERSEC
/
MSVCRT_CLOCKS_PER_SEC
)
;
return
clock
;
}
...
...
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