X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8b9f1461e3444561c67dbf0b688d69172b1a8d31..e133a950865071b1c006387e915d39989a53c8cd:/src/cxx/Msg.hpp diff --git a/src/cxx/Msg.hpp b/src/cxx/Msg.hpp index 61251569c1..3e26478018 100644 --- a/src/cxx/Msg.hpp +++ b/src/cxx/Msg.hpp @@ -20,35 +20,39 @@ #error Msg.hpp requires C++ compilation (use a .cxx suffix) #endif -#include +#include namespace SimGrid { namespace Msg { + class MsgException; /*! \brief init() - Initialize MSG (This function must be called at the begining of each simulation). * * \param argv A list of arguments. * \param argc The number of arguments of the list. */ - static void init(int argc, char** argv); + SIMGRIDX_EXPORT void init(int argc, char** argv); - /* \brief finalize() - Finalize MSG (This function must be called at the end of each simulation). + /*! \brief finalize() - Finalize MSG (This function must be called at the end of each simulation). * * \exception If this function fails, it throws a exception describing the cause of the failure. */ - static void finalize(void) + SIMGRIDX_EXPORT void finalize(void) throw (MsgException); /*! \brief info() - Display information (using xbt log format). * * \param s The information to display. */ - static void info(const char* s); - - - + SIMGRIDX_EXPORT void info(const char* s); + + /*! \brief getClock() - Retrieve the simulation time + * + * \return The current simulation time. + */ + SIMGRIDX_EXPORT double getClock(void); } // namespace Msg } // namespace SimGrid