Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Wrong namming scheme.
[simgrid.git] / src / include / xbt / xbt_os_time.h
1 /* $Id$ */
2 /*  xbt/xbt_portability.h -- all system dependency                          */
3 /* Private portability layer                                                */
4
5 /* Copyright (c) 2004,2005 Martin Quinson. All rights reserved.             */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #ifndef _XBT_PORTABILITY_H
11 #define _XBT_PORTABILITY_H
12
13 #include <xbt/misc.h> /* XBT_PUBLIC */
14
15 /** @brief get time in seconds 
16
17   * gives  the  number  of  seconds since the Epoch (00:00:00 UTC, January 1, 1970).
18   * Most users should use gras_os_time and should not use this function unless 
19     they really know what they are doing. */
20 XBT_PUBLIC(double) xbt_os_time(void);
21 XBT_PUBLIC(void) xbt_os_sleep(double sec);
22
23 typedef struct s_xbt_os_timer *xbt_os_timer_t;
24 xbt_os_timer_t xbt_os_timer_new(void);
25 void xbt_os_timer_free(xbt_os_timer_t timer);
26 void xbt_os_timer_start(xbt_os_timer_t timer);
27 void xbt_os_timer_stop(xbt_os_timer_t timer);
28 double xbt_os_timer_elapsed(xbt_os_timer_t timer);
29
30 #endif