From: Christian Heinrich Date: Mon, 26 Mar 2018 17:56:36 +0000 (+0200) Subject: [SMPI] Replay: Make start_time a local variable X-Git-Tag: v3.20~600^2~24 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a40d504b595655bff5c4e433bf929091a155aef7 [SMPI] Replay: Make start_time a local variable --- diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index 15fdadaee9..beb0191d9b 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -106,22 +106,17 @@ protected: const std::string name; T args; - /* - * Used to compute the duration of this action. - */ - double start_time; - int my_proc_id; public: - explicit ReplayAction(std::string name) : name(name), start_time(0), my_proc_id(simgrid::s4u::Actor::self()->getPid()) + explicit ReplayAction(std::string name) : name(name), my_proc_id(simgrid::s4u::Actor::self()->getPid()) { } virtual void execute(simgrid::xbt::ReplayAction& action) { // Needs to be re-initialized for every action, hence here - start_time = smpi_process()->simulated_elapsed(); + double start_time = smpi_process()->simulated_elapsed(); args.parse(action); kernel(action); log_timed_action(action, start_time);