Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ademco_hb
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
ademco_hb
Commits
172d81c5
Commit
172d81c5
authored
Oct 15, 2019
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bps
parent
67e697d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
bench.cpp
bench/bench.cpp
+2
-0
No files found.
bench/bench.cpp
View file @
172d81c5
...
...
@@ -67,6 +67,8 @@ void ademcoPacketBench()
printf
(
"
\n
done
\n
duration=%lldms
\n
avg parse time=%.2lfus
\n
"
,
ms
,
avg
);
double
avgpps
=
1000.0
*
TIMES
/
ms
;
printf
(
"average packets per second=%.2lf
\n
"
,
avgpps
);
double
avgbps
=
total_len
*
1000.0
/
ms
;
printf
(
"average bytes per second=%.2lfB/s, %.2lfKB/s
\n
"
,
avgbps
,
avgbps
/
1024.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