X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/406f54970c00ca178fa918763d943027bd09e3ba..9b73466ada27682d1729f394549479da83ef4a99:/src/include/xbt/xbt_os_time.h diff --git a/src/include/xbt/xbt_os_time.h b/src/include/xbt/xbt_os_time.h index a86bcdd96c..42a0c4d4e7 100644 --- a/src/include/xbt/xbt_os_time.h +++ b/src/include/xbt/xbt_os_time.h @@ -1,7 +1,7 @@ /* xbt/xbt_portability.h -- all system dependency */ /* Private portability layer */ -/* Copyright (c) 2007, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2007, 2009-2010, 2012-2013. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -20,11 +20,21 @@ 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(xbt_os_timer_t) xbt_os_timer_new(void); XBT_PUBLIC(void) xbt_os_timer_free(xbt_os_timer_t timer); -XBT_PUBLIC(void) xbt_os_timer_start(xbt_os_timer_t timer); -XBT_PUBLIC(void) xbt_os_timer_resume(xbt_os_timer_t timer); -XBT_PUBLIC(void) xbt_os_timer_stop(xbt_os_timer_t timer); XBT_PUBLIC(double) xbt_os_timer_elapsed(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(void) xbt_os_walltimer_resume(xbt_os_timer_t timer); +XBT_PUBLIC(void) xbt_os_walltimer_stop(xbt_os_timer_t timer); + +XBT_PUBLIC(void) xbt_os_cputimer_start(xbt_os_timer_t timer); +XBT_PUBLIC(void) xbt_os_cputimer_resume(xbt_os_timer_t timer); +XBT_PUBLIC(void) xbt_os_cputimer_stop(xbt_os_timer_t timer); +XBT_PUBLIC(void) xbt_os_threadtimer_start(xbt_os_timer_t timer); +XBT_PUBLIC(void) xbt_os_threadtimer_resume(xbt_os_timer_t timer); +XBT_PUBLIC(void) xbt_os_threadtimer_stop(xbt_os_timer_t timer); #endif