X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/47801f582a7b05f4cd4680f96fb44316fe4e7a89..e6e653ac5c6803a507ccb966a6e561500f0208a2:/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 3597ac898e..a86bcdd96c 100644 --- a/src/include/xbt/xbt_os_time.h +++ b/src/include/xbt/xbt_os_time.h @@ -1,8 +1,8 @@ -/* $Id$ */ /* xbt/xbt_portability.h -- all system dependency */ /* Private portability layer */ -/* Copyright (c) 2004,2005 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2007, 2009, 2010. The SimGrid Team. + * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -10,21 +10,21 @@ #ifndef _XBT_PORTABILITY_H #define _XBT_PORTABILITY_H -#include /* XBT_PUBLIC */ +#include /* XBT_PUBLIC */ /** @brief get time in seconds * gives the number of seconds since the Epoch (00:00:00 UTC, January 1, 1970). - * Most users should use gras_os_time and should not use this function unless - they really know what they are doing. */ + */ 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_os_timer_t xbt_os_timer_new(void); -void xbt_os_timer_free(xbt_os_timer_t timer); -void xbt_os_timer_start(xbt_os_timer_t timer); -void xbt_os_timer_stop(xbt_os_timer_t timer); -double xbt_os_timer_elapsed(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(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); #endif