Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
f00a5df4
Commit
f00a5df4
authored
Aug 28, 2020
by
Antoine Kaufmann
Browse files
libnicbm: add time_ps() method to runner
parent
ea6fd0f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
libnicbm/include/nicbm.h
libnicbm/include/nicbm.h
+2
-0
libnicbm/nicbm.cc
libnicbm/nicbm.cc
+5
-0
No files found.
libnicbm/include/nicbm.h
View file @
f00a5df4
...
...
@@ -87,6 +87,8 @@ class Runner {
void
issue_dma
(
DMAOp
&
op
);
void
msi_issue
(
uint8_t
vec
);
void
eth_send
(
const
void
*
data
,
size_t
len
);
uint64_t
time_ps
()
const
;
};
/**
...
...
libnicbm/nicbm.cc
View file @
f00a5df4
...
...
@@ -255,6 +255,11 @@ void Runner::poll_n2d()
nicif_n2d_next
();
}
uint64_t
Runner
::
time_ps
()
const
{
return
main_time
;
}
Runner
::
Runner
(
Device
&
dev_
)
:
dev
(
dev_
)
{
...
...
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