Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bb4568714d30b7a56b7dd5750d6da36ffcfe3f91
[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_second(struct timespec *res);
10 inline double get_microsecond(struct timespec *res);
11 inline double get_nanosecond(struct timespec *res);
12
13
14
15 int get_time(struct timespec *tp);
16 double get_timediff(struct timespec *start, struct timespec * end);
17 #endif /*timer_H_*/