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
[sonar] Another bunch of const qualifiers.
[simgrid.git]
/
include
/
xbt
/
xbt_os_time.h
diff --git
a/include/xbt/xbt_os_time.h
b/include/xbt/xbt_os_time.h
index
77b27e1
..
1bc2b44
100644
(file)
--- a/
include/xbt/xbt_os_time.h
+++ b/
include/xbt/xbt_os_time.h
@@
-21,10
+21,11
@@
XBT_PUBLIC double xbt_os_time(void);
XBT_PUBLIC void xbt_os_sleep(double sec);
typedef struct s_xbt_os_timer *xbt_os_timer_t;
XBT_PUBLIC void xbt_os_sleep(double sec);
typedef struct s_xbt_os_timer *xbt_os_timer_t;
+typedef const struct s_xbt_os_timer* const_xbt_os_timer_t;
XBT_PUBLIC xbt_os_timer_t xbt_os_timer_new(void);
XBT_PUBLIC void xbt_os_timer_free(xbt_os_timer_t timer);
XBT_PUBLIC xbt_os_timer_t xbt_os_timer_new(void);
XBT_PUBLIC void xbt_os_timer_free(xbt_os_timer_t timer);
-XBT_PUBLIC double xbt_os_timer_elapsed(xbt_os_timer_t timer);
+XBT_PUBLIC double xbt_os_timer_elapsed(
const_
xbt_os_timer_t timer);
XBT_PUBLIC size_t xbt_os_timer_size(void);
XBT_PUBLIC void xbt_os_walltimer_start(xbt_os_timer_t timer);
XBT_PUBLIC size_t xbt_os_timer_size(void);
XBT_PUBLIC void xbt_os_walltimer_start(xbt_os_timer_t timer);