A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This function could be useful.
[simgrid.git]
/
src
/
simdag
/
sd_global.c
diff --git
a/src/simdag/sd_global.c
b/src/simdag/sd_global.c
index
56eb8b3
..
0d765d5
100644
(file)
--- 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.
*
* This function should be called when the simulation is over. Don't forget also to destroy
* the tasks.