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
bdb218ab
Commit
bdb218ab
authored
Jul 09, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh: Add an uptime counter source based on GetTickCount.
parent
6a95b93e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
pdh_main.c
dlls/pdh/pdh_main.c
+13
-1
No files found.
dlls/pdh/pdh_main.c
View file @
bdb218ab
...
...
@@ -150,10 +150,22 @@ struct source
LONGLONG
base
;
/* samples per second */
};
static
const
WCHAR
path_uptime
[]
=
{
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
' '
,
'U'
,
'p'
,
' '
,
'T'
,
'i'
,
'm'
,
'e'
,
0
};
static
void
CALLBACK
collect_uptime
(
struct
counter
*
counter
)
{
counter
->
two
.
largevalue
=
GetTickCount
();
/* FIXME */
counter
->
status
=
PDH_CSTATUS_VALID_DATA
;
}
#define TYPE_UPTIME \
(PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_ELAPSED | PERF_OBJECT_TIMER | PERF_DISPLAY_SECONDS)
/* counter source registry */
static
const
struct
source
counter_sources
[]
=
{
{
NULL
,
NULL
,
0
,
0
,
0
}
{
path_uptime
,
collect_uptime
,
TYPE_UPTIME
,
-
3
,
100
0
}
};
/***********************************************************************
...
...
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