X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_clock_gettimeofday.h;h=525aac824fa122bfa0c4c3a8e1f1e2b8e8ac51be;hb=cee5940bae97612105db8b7e1ffcf513f9d9150c;hp=ab6a77076f19a269f9e5d85ed76b346b390804a6;hpb=dee84efa006428fdfbf0e84b66ee94eb23113ad9;p=synfig.git diff --git a/ETL/trunk/ETL/_clock_gettimeofday.h b/ETL/trunk/ETL/_clock_gettimeofday.h index ab6a770..525aac8 100644 --- a/ETL/trunk/ETL/_clock_gettimeofday.h +++ b/ETL/trunk/ETL/_clock_gettimeofday.h @@ -66,17 +66,17 @@ protected: { timestamp(int sec, int usec) { tv_sec=sec; tv_usec=usec; } - - friend class clock_desc_gettimeofday; + + friend class clock_desc_gettimeofday; public: timestamp() { } - - + + inline timestamp operator-(const timestamp &rhs)const { timestamp ret; ret.tv_usec=tv_usec-rhs.tv_usec; - + if(ret.tv_usec<0) { ret.tv_sec=tv_sec-rhs.tv_sec-1; @@ -90,7 +90,7 @@ protected: inline timestamp operator+(timestamp rhs)const { rhs.tv_usec+=tv_usec; - + if(rhs.tv_usec>1000000) { rhs.tv_sec+=tv_sec+1; @@ -100,7 +100,7 @@ protected: rhs.tv_sec+=tv_sec; return rhs; } - + inline bool operator<(const timestamp &rhs)const { return tv_sec