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
Use std::copy.
[simgrid.git]
/
src
/
s4u
/
s4u_Activity.cpp
diff --git
a/src/s4u/s4u_Activity.cpp
b/src/s4u/s4u_Activity.cpp
index 3e3b92f030e188f6e2733eccdc3cc717e9079175..55bba1e56ffe90031e6a051732df913cd22a5610 100644
(file)
--- a/
src/s4u/s4u_Activity.cpp
+++ b/
src/s4u/s4u_Activity.cpp
@@
-65,6
+65,11
@@
Activity* Activity::resume()
return this;
}
+const char* Activity::get_state_str() const
+{
+ return to_c_str(state_);
+}
+
double Activity::get_remaining() const
{
if (state_ == State::INITED || state_ == State::STARTING)