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
2333c805
Commit
2333c805
authored
Apr 19, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Added NtGetTickCount implementation.
parent
bace1ef6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-2
time.c
dlls/ntdll/time.c
+14
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
2333c805
...
...
@@ -177,7 +177,7 @@
@ stdcall NtGetContextThread(long ptr)
# @ stub NtGetDevicePowerState
@ stub NtGetPlugPlayEvent
@ st
ub NtGetTickCount
@ st
dcall NtGetTickCount()
# @ stub NtGetWriteWatch
@ stub NtImpersonateAnonymousToken
@ stub NtImpersonateClientOfPort
...
...
@@ -1019,7 +1019,7 @@
@ stdcall ZwGetContextThread(long ptr) NtGetContextThread
# @ stub ZwGetDevicePowerState
@ stub ZwGetPlugPlayEvent
@ st
ub Zw
GetTickCount
@ st
dcall ZwGetTickCount() Nt
GetTickCount
# @ stub ZwGetWriteWatch
# @ stub ZwImpersonateAnonymousToken
@ stub ZwImpersonateClientOfPort
...
...
dlls/ntdll/time.c
View file @
2333c805
...
...
@@ -877,6 +877,20 @@ NTSTATUS WINAPI NtQueryPerformanceCounter( PLARGE_INTEGER Counter, PLARGE_INTEGE
return
STATUS_SUCCESS
;
}
/******************************************************************************
* NtGetTickCount (NTDLL.@)
* ZwGetTickCount (NTDLL.@)
*/
ULONG
WINAPI
NtGetTickCount
(
void
)
{
struct
timeval
current_time
;
gettimeofday
(
&
current_time
,
NULL
);
return
(
current_time
.
tv_sec
-
server_start_time
)
*
1000
+
current_time
.
tv_usec
/
1000
;
}
/***********************************************************************
* TIME_GetTZAsStr [internal]
*
...
...
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