X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c31366609199a57339e472af71dbdd30c4fd60e..407a83cbc983ae0d5773c1a418b1c4e580caa37a:/src/include/xbt/xbt_portability.h diff --git a/src/include/xbt/xbt_portability.h b/src/include/xbt/xbt_portability.h index 4159e02646..be1589292f 100644 --- a/src/include/xbt/xbt_portability.h +++ b/src/include/xbt/xbt_portability.h @@ -1,3 +1,27 @@ +/* $Id$ */ +/* xbt/xbt_portability.h -- all system dependency */ +/* Private portability layer */ +/* Copyright (c) 2004,2005 Martin Quinson. 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. */ + +#ifndef _XBT_PORTABILITY_H +#define _XBT_PORTABILITY_H + +/** @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. */ double xbt_os_time(void); + +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); + +#endif