Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
94fa733e
Commit
94fa733e
authored
Oct 20, 2012
by
Pedro Gonnet
Browse files
more timers.
Former-commit-id: d1c3a60c6bee7cad88b31fa8ced84d3b9693672e
parent
8d104aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/test.c
View file @
94fa733e
...
...
@@ -685,6 +685,10 @@ int main ( int argc , char *argv[] ) {
#ifdef TIMER
for
(
k
=
0
;
k
<
runner_timer_count
;
k
++
)
runner_timer
[
k
]
=
0
;
for
(
k
=
0
;
k
<
queue_timer_count
;
k
++
)
queue_timer
[
k
]
=
0
;
for
(
k
=
0
;
k
<
cell_timer_count
;
k
++
)
cell_timer
[
k
]
=
0
;
#endif
#ifdef COUNTER
for
(
k
=
0
;
k
<
runner_counter_count
;
k
++
)
...
...
@@ -700,6 +704,10 @@ int main ( int argc , char *argv[] ) {
for
(
k
=
1
;
k
<
queue_timer_count
;
k
++
)
printf
(
" %.3f"
,
((
double
)
queue_timer
[
k
])
/
CPU_TPS
*
1000
);
printf
(
" ] ms.
\n
"
);
printf
(
"main: cell timers are [ %.3f"
,
cell_timer
[
0
]
/
CPU_TPS
*
1000
);
for
(
k
=
1
;
k
<
cell_timer_count
;
k
++
)
printf
(
" %.3f"
,
((
double
)
cell_timer
[
k
])
/
CPU_TPS
*
1000
);
printf
(
" ] ms.
\n
"
);
#else
printf
(
"main: runner_run with %i threads took %.3f ms.
\n
"
,
nr_threads
,
((
double
)(
getticks
()
-
tic
))
/
CPU_TPS
*
1000
);
#endif
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment