Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
40fb7ca1
Commit
40fb7ca1
authored
17 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
kernel32: Implemented GetTickCount64.
parent
6544d9ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/kernel32/kernel32.spec
+1
-0
1 addition, 0 deletions
dlls/kernel32/kernel32.spec
dlls/kernel32/kernel_main.c
+19
-1
19 additions, 1 deletion
dlls/kernel32/kernel_main.c
include/winbase.h
+1
-0
1 addition, 0 deletions
include/winbase.h
with
21 additions
and
1 deletion
dlls/kernel32/kernel32.spec
+
1
−
0
View file @
40fb7ca1
...
...
@@ -636,6 +636,7 @@
@ stdcall GetThreadSelectorEntry(long long ptr)
@ stdcall GetThreadTimes(long ptr ptr ptr ptr)
@ stdcall GetTickCount()
@ stdcall -ret64 GetTickCount64()
@ stdcall GetTimeFormatA(long long ptr str ptr long)
@ stdcall GetTimeFormatW(long long ptr wstr ptr long)
@ stdcall GetTimeZoneInformation(ptr)
...
...
This diff is collapsed.
Click to expand it.
dlls/kernel32/kernel_main.c
+
19
−
1
View file @
40fb7ca1
...
...
@@ -46,6 +46,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(process);
extern
int
__wine_set_signal_handler
(
unsigned
,
int
(
*
)(
unsigned
));
static
ULONGLONG
server_start_time
;
/***********************************************************************
* KERNEL thread initialisation routine
*/
...
...
@@ -112,12 +114,16 @@ static void set_entry_point( HMODULE module, const char *name, DWORD rva )
static
BOOL
process_attach
(
HMODULE
module
)
{
SYSTEM_INFO
si
;
SYSTEM_TIMEOFDAY_INFORMATION
ti
;
RTL_USER_PROCESS_PARAMETERS
*
params
=
NtCurrentTeb
()
->
Peb
->
ProcessParameters
;
/* FIXME: should probably be done in ntdll */
GetSystemInfo
(
&
si
);
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
=
si
.
dwNumberOfProcessors
;
NtQuerySystemInformation
(
SystemTimeOfDayInformation
,
&
ti
,
sizeof
(
ti
),
NULL
);
server_start_time
=
ti
.
liKeBootTime
.
QuadPart
;
/* Setup registry locale information */
LOCALE_InitRegistry
();
...
...
@@ -236,6 +242,18 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
}
/******************************************************************************
* GetTickCount64 (KERNEL32.@)
*/
ULONGLONG
WINAPI
GetTickCount64
(
void
)
{
LARGE_INTEGER
now
;
NtQuerySystemTime
(
&
now
);
return
(
now
.
QuadPart
-
server_start_time
)
/
10000
;
}
/***********************************************************************
* GetTickCount (KERNEL32.@)
*
...
...
@@ -254,5 +272,5 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
*/
DWORD
WINAPI
GetTickCount
(
void
)
{
return
Nt
GetTickCount
();
return
GetTickCount
64
();
}
This diff is collapsed.
Click to expand it.
include/winbase.h
+
1
−
0
View file @
40fb7ca1
...
...
@@ -1679,6 +1679,7 @@ DWORD WINAPI GetTempPathA(DWORD,LPSTR);
DWORD
WINAPI
GetTempPathW
(
DWORD
,
LPWSTR
);
#define GetTempPath WINELIB_NAME_AW(GetTempPath)
DWORD
WINAPI
GetTickCount
(
void
);
ULONGLONG
WINAPI
GetTickCount64
(
void
);
DWORD
WINAPI
GetTimeZoneInformation
(
LPTIME_ZONE_INFORMATION
);
BOOL
WINAPI
GetThreadContext
(
HANDLE
,
CONTEXT
*
);
INT
WINAPI
GetThreadPriority
(
HANDLE
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment