Line |
Branch |
Exec |
Source |
1 |
|
|
/*************************************** |
2 |
|
|
Auteur : Pierre Aubert |
3 |
|
|
Mail : pierre.aubert@lapp.in2p3.fr |
4 |
|
|
Licence : CeCILL-C |
5 |
|
|
****************************************/ |
6 |
|
|
|
7 |
|
|
#ifndef __PCLOCKBACKEND_H__ |
8 |
|
|
#define __PCLOCKBACKEND_H__ |
9 |
|
|
|
10 |
|
|
#include <time.h> |
11 |
|
|
|
12 |
|
|
///@brief clock backend for clock |
13 |
|
|
struct PClockBackend{ |
14 |
|
|
///Get current time with PClockBackend |
15 |
|
|
/** @return current time given by clock |
16 |
|
|
*/ |
17 |
|
2 |
inline static time_t now(){ |
18 |
|
2 |
return clock(); |
19 |
|
|
} |
20 |
|
|
}; |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
#endif |
25 |
|
|
|
26 |
|
|
|