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
Removed unused functions from xbt_str.
[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
fa6fc2b
..
0e8951f
100644
(file)
--- a/
src/xbt/xbt_os_time.c
+++ b/
src/xbt/xbt_os_time.c
@@
-92,15
+92,22
@@
void xbt_os_sleep(double sec)
*/
struct s_xbt_os_timer {
#if HAVE_POSIX_GETTIME
*/
struct s_xbt_os_timer {
#if HAVE_POSIX_GETTIME
- struct timespec start, stop, elapse;
+ struct timespec start;
+ struct timespec stop;
+ struct timespec elapse;
#elif HAVE_GETTIMEOFDAY || defined(_WIN32)
#elif HAVE_GETTIMEOFDAY || defined(_WIN32)
- struct timeval start, stop, elapse;
+ struct timeval start;
+ struct timeval stop;
+ struct timeval elapse;
#else
#else
- unsigned long int start, stop, elapse;
+ unsigned long int start;
+ unsigned long int stop;
+ unsigned long int elapse;
#endif
};
#endif
};
-size_t xbt_os_timer_size(void){
+size_t xbt_os_timer_size(void)
+{
return sizeof(struct s_xbt_os_timer);
}
return sizeof(struct s_xbt_os_timer);
}