git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2528
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
void SD_init(int *argc, char **argv);
void SD_create_environment(const char *platform_file);
SD_task_t* SD_simulate(double how_long);
+double SD_get_clock(void);
void SD_exit(void);
/** @} */
}
/**
- * \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.