Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Last Changes of CPP version of Msg
[simgrid.git] / src / cxx / Msg.cxx
index 94c7e81..20521cd 100644 (file)
  \r
  /* Msg functions implementation.\r
   */  \r
+\r
+#include <MsgException.hpp>\r
 #include <Msg.hpp>\r
 \r
+#include <msg/msg.h>\r
+#include <stdio.h>\r
+\r
+// XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(SimGridX);\r
+\r
 namespace SimGrid\r
 {\r
        namespace Msg\r
@@ -35,7 +42,13 @@ namespace SimGrid
                \r
                void info(const char* s)\r
                {\r
-                        INFO1("%s",s);\r
+                        //INFO1("%s",s);\r
+                       printf("[SimGridX/info] %s\n", s);\r
+               }\r
+\r
+               double getClock(void)\r
+               {\r
+                       return MSG_get_clock();\r
                }\r
 \r
        } // namespace Msg\r