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
Added xbt_os_time and xbt_os_sleep. Execute in the real and simulate systems.
[simgrid.git]
/
src
/
xbt
/
xbt_os_time.c
diff --git
a/src/xbt/xbt_os_time.c
b/src/xbt/xbt_os_time.c
index
94de59a
..
c74b4dd
100644
(file)
--- a/
src/xbt/xbt_os_time.c
+++ b/
src/xbt/xbt_os_time.c
@@
-32,6
+32,7
@@
XBT_PUBLIC(void) xbt_free_f(void* p)
* an OS abstraction.
*/
* an OS abstraction.
*/
+/*
double xbt_os_time(void) {
#ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
double xbt_os_time(void) {
#ifdef HAVE_GETTIMEOFDAY
struct timeval tv;
@@
-39,11
+40,11
@@
double xbt_os_time(void) {
gettimeofday(&tv, NULL);
return (double)(tv.tv_sec + tv.tv_usec / 1000000.0);
gettimeofday(&tv, NULL);
return (double)(tv.tv_sec + tv.tv_usec / 1000000.0);
-#else
+#else
*/
/* Poor resolution */
/* Poor resolution */
- return (double)(time(NULL));
-#endif /* HAVE_GETTIMEOFDAY? */
-}
+/* return (double)(time(NULL));*/
+//#endif /* HAVE_GETTIMEOFDAY? */
+
//
}
/*XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sysdep, xbt, "System dependency");*/
/*XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sysdep, xbt, "System dependency");*/