A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4u::Host->getLoad() returns the achieved speed in flops/s
[simgrid.git]
/
src
/
s4u
/
s4u_host.cpp
diff --git
a/src/s4u/s4u_host.cpp
b/src/s4u/s4u_host.cpp
index
da99e12
..
9b4f49a
100644
(file)
--- a/
src/s4u/s4u_host.cpp
+++ b/
src/s4u/s4u_host.cpp
@@
-261,5
+261,10
@@
void Host::execute(double flops)
simcall_execution_wait(s);
}
+double Host::getLoad()
+{
+ return this->pimpl_cpu->getLoad();
+}
+
} // namespace simgrid
} // namespace s4u