2 #include "FinalizeTask.hpp"
\r
3 #include "CommTimeTask.hpp"
\r
5 #include <HostNotFoundException.hpp>
\r
10 MSG_IMPLEMENT_DYNAMIC(Slave, Process);
\r
12 int Slave::main(int argc, char** argv)
\r
18 double time1 = getClock();
\r
19 Task* t = Task::get(0);
\r
20 double time2 = getClock();
\r
22 if(t->isInstanceOf("FinalizeTask"))
\r
28 CommTimeTask* task = reinterpret_cast<CommTimeTask*>(t);
\r
30 if(time1 < task->getTime())
\r
31 time1 = task->getTime();
\r
33 //info(TEXT_("Processing \"") + TEXT_(task->getName()) + TEXT_("\" ") + TEXT_(getHost().getName()) + TEXT_(" (Communication time : ") + TEXT_((time2 - time1)) + TEXT_(")"));
\r
40 info(TEXT_("Received Finalize. I'm done. See you!"));
\r