X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ccd9b3814f5736e32f689e37ba7f870d6a1066cd..eb47577c32b49a28eb7986b0fd86ed0d76207150:/lib/base/ebase.h diff --git a/lib/base/ebase.h b/lib/base/ebase.h index 2a1fe628..d4709418 100644 --- a/lib/base/ebase.h +++ b/lib/base/ebase.h @@ -22,6 +22,11 @@ static inline bool operator<( const timeval &t1, const timeval &t2 ) return t1.tv_sec < t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_usec < t2.tv_usec); } +static inline bool operator<=( const timeval &t1, const timeval &t2 ) +{ + return t1.tv_sec < t2.tv_sec || (t1.tv_sec == t2.tv_sec && t1.tv_usec <= t2.tv_usec); +} + static inline timeval &operator+=( timeval &t1, const timeval &t2 ) { t1.tv_sec += t2.tv_sec;