Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
5a59a24ea405c11893b066752b201835836886dc
[simgrid.git] / examples / smpi / MM / timer.h
1 #ifndef timer_H_
2 #define timer_H_
3 /*!
4  * \defgroup timer.h
5  * here, we provides a generic interface to time some parts of the code
6  */
7 # include <sys/time.h>
8
9 inline double get_microsecond(struct timespec *res);
10 inline double get_nanosecond(struct timespec *res);
11
12
13
14 int get_time(struct timespec *tp);
15 double get_timediff(struct timespec *start, struct timespec * end);
16 #endif /*timer_H_*/