X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/058c687b139f1131ed53c1ddf5703e3e704bb4f8..dc623452c9774e898e5547d8aa3757d1621aeb75:/src/simdag/sd_global.c diff --git a/src/simdag/sd_global.c b/src/simdag/sd_global.c index 56eb8b33cf..0d765d5790 100644 --- a/src/simdag/sd_global.c +++ b/src/simdag/sd_global.c @@ -226,7 +226,16 @@ SD_task_t* SD_simulate(double how_long) } /** - * \brief Destroys all SD internal data. + * \brief Returns the current clock + * + * \return the current clock, in second + */ +double SD_get_clock(void) { + return surf_get_clock(); +} + +/** + * \brief Destroys all SD internal data * * This function should be called when the simulation is over. Don't forget also to destroy * the tasks.