X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftime.h;h=dc1cb2201bdd4b809614954b49807e1cef81075b;hb=a00149f6aeb2c16c4911e6df31ed94d398b768bd;hp=2cce27608baaf2aaecf5969cdb72efdb6caf7482;hpb=f95bc8309fe113855266f4445874248b6a285062;p=lttv.git diff --git a/ltt/branches/poly/ltt/time.h b/ltt/branches/poly/ltt/time.h index 2cce2760..dc1cb220 100644 --- a/ltt/branches/poly/ltt/time.h +++ b/ltt/branches/poly/ltt/time.h @@ -19,6 +19,8 @@ #ifndef LTT_TIME_H #define LTT_TIME_H +#include + typedef struct _LttTime { unsigned long tv_sec; @@ -30,6 +32,7 @@ static const unsigned long NANOSECONDS_PER_SECOND = 1000000000; static const LttTime ltt_time_zero = { 0, 0}; +static const LttTime ltt_time_infinite = { G_MAXUINT, G_MAXUINT }; static inline LttTime ltt_time_sub(LttTime t1, LttTime t2) {