Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CTU CAN FD IP Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canbus
CTU CAN FD IP Core
Commits
c2304411
Commit
c2304411
authored
Jan 13, 2019
by
Pavel Pisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver: add measurement of write access time to userspace test application.
Signed-off-by:
Pavel Pisa
<
pisa@cmp.felk.cvut.cz
>
parent
46efeb70
Pipeline
#5904
passed with stages
in 11 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
driver/ctu_can_fd_userspace.cpp
driver/ctu_can_fd_userspace.cpp
+11
-0
No files found.
driver/ctu_can_fd_userspace.cpp
View file @
c2304411
...
@@ -302,6 +302,17 @@ int main(int argc, char *argv[])
...
@@ -302,6 +302,17 @@ int main(int argc, char *argv[])
printf
(
"%d reads takes %ld.%09ld s
\n
"
,
printf
(
"%d reads takes %ld.%09ld s
\n
"
,
i
,
(
long
)
diff
.
tv_sec
,
diff
.
tv_nsec
);
i
,
(
long
)
diff
.
tv_sec
,
diff
.
tv_nsec
);
dummy
=
0
;
clock_gettime
(
CLOCK_MONOTONIC
,
&
tic
);
for
(
i
=
0
;
i
<
1000
*
1000
;
i
++
)
{
ctu_can_fd_write32
(
priv
,
CTU_CAN_FD_FILTER_C_VAL
,
dummy
);
}
clock_gettime
(
CLOCK_MONOTONIC
,
&
tac
);
timespec_sub
(
&
diff
,
&
tac
,
&
tic
);
printf
(
"%d writes takes %ld.%09ld s
\n
"
,
i
,
(
long
)
diff
.
tv_sec
,
diff
.
tv_nsec
);
return
0
;
return
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