Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
94fa733e
Commit
94fa733e
authored
12 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
more timers.
Former-commit-id: d1c3a60c6bee7cad88b31fa8ced84d3b9693672e
parent
8d104aef
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/test.c
+8
-0
8 additions, 0 deletions
examples/test.c
with
8 additions
and
0 deletions
examples/test.c
+
8
−
0
View file @
94fa733e
...
@@ -685,6 +685,10 @@ int main ( int argc , char *argv[] ) {
...
@@ -685,6 +685,10 @@ int main ( int argc , char *argv[] ) {
#ifdef TIMER
#ifdef TIMER
for
(
k
=
0
;
k
<
runner_timer_count
;
k
++
)
for
(
k
=
0
;
k
<
runner_timer_count
;
k
++
)
runner_timer
[
k
]
=
0
;
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
#endif
#ifdef COUNTER
#ifdef COUNTER
for
(
k
=
0
;
k
<
runner_counter_count
;
k
++
)
for
(
k
=
0
;
k
<
runner_counter_count
;
k
++
)
...
@@ -700,6 +704,10 @@ int main ( int argc , char *argv[] ) {
...
@@ -700,6 +704,10 @@ int main ( int argc , char *argv[] ) {
for
(
k
=
1
;
k
<
queue_timer_count
;
k
++
)
for
(
k
=
1
;
k
<
queue_timer_count
;
k
++
)
printf
(
" %.3f"
,
((
double
)
queue_timer
[
k
])
/
CPU_TPS
*
1000
);
printf
(
" %.3f"
,
((
double
)
queue_timer
[
k
])
/
CPU_TPS
*
1000
);
printf
(
" ] ms.
\n
"
);
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
#else
printf
(
"main: runner_run with %i threads took %.3f ms.
\n
"
,
nr_threads
,
((
double
)(
getticks
()
-
tic
))
/
CPU_TPS
*
1000
);
printf
(
"main: runner_run with %i threads took %.3f ms.
\n
"
,
nr_threads
,
((
double
)(
getticks
()
-
tic
))
/
CPU_TPS
*
1000
);
#endif
#endif
...
...
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