equal
deleted
inserted
replaced
21 */ |
21 */ |
22 |
22 |
23 #ifndef __TIMERSCFG_H__ |
23 #ifndef __TIMERSCFG_H__ |
24 #define __TIMERSCFG_H__ |
24 #define __TIMERSCFG_H__ |
25 |
25 |
26 /* Time unit : us */ |
26 /* Time unit : ns */ |
27 /* Time resolution : 64bit (~584942 years) */ |
27 /* Time resolution : 64bit (~585 years) */ |
28 #define TIMEVAL unsigned long long |
28 #define TIMEVAL unsigned long long |
29 #define TIMEVAL_MAX ~(TIMEVAL)0 |
29 #define TIMEVAL_MAX ~(TIMEVAL)0 |
30 #define MS_TO_TIMEVAL(ms) ms*1000L |
30 #define MS_TO_TIMEVAL(ms) ms*1000000L |
31 #define US_TO_TIMEVAL(us) us |
31 #define US_TO_TIMEVAL(us) us*1000L |
32 |
32 |
33 #define TASK_HANDLE void* |
33 #define TASK_HANDLE void* |
34 |
34 |
35 #endif |
35 #endif |