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
Merge branch 'hypervisor' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid into hypervisor
[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
0f17fcc
..
9788f9f
100644
(file)
--- a/
src/xbt/xbt_os_time.c
+++ b/
src/xbt/xbt_os_time.c
@@
-17,6
+17,11
@@
#include <windows.h>
#endif
#include <windows.h>
#endif
+//Freebsd doesn't provide this clock_gettime flag yet, because it was added too recently (after 1993)
+#ifdef __FreeBSD__
+#define CLOCK_PROCESS_CPUTTIME_ID CLOCK_PROF
+#endif
+
double xbt_os_time(void)
{
#ifdef HAVE_GETTIMEOFDAY
double xbt_os_time(void)
{
#ifdef HAVE_GETTIMEOFDAY