From 3937740937e41c25c87a241c243e7ec7e6abf0f8 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 9 Feb 2011 17:45:56 +0200 Subject: [PATCH 1/1] =?utf8?q?=D0=92=D0=B8=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D0=BE=20"=D0=BC=D0=B5=D1=80=D1=82=D0=B2=D0=B8=D0=B9"=20=D0=BA?= =?utf8?q?=D0=BE=D0=B4=20=D1=96=D0=B7=20utime.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- include/utime.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/utime.h b/include/utime.h index 4342edc6..20da4e43 100644 --- a/include/utime.h +++ b/include/utime.h @@ -108,8 +108,6 @@ struct UTIME: public timeval bool operator==(const UTIME & rhs) const { - //cout << tv_sec << "." << tv_usec << " " << rhs.tv_sec << "." << rhs.tv_usec << endl; - //cout << (tv_sec == rhs.tv_sec) << " " << (tv_usec == rhs.tv_usec) << endl; return (tv_sec == rhs.tv_sec) && (tv_usec == rhs.tv_usec); } @@ -117,9 +115,6 @@ struct UTIME: public timeval { // TODO optimize long long a, b; - /*a = tv_sec * 1000000 + tv_usec; - b = rhs.tv_sec * 1000000 + rhs.tv_usec; - return UTIME((a + b) / 1000000, (a + b) % 1000000);*/ a = tv_sec + rhs.tv_sec; b = tv_usec + rhs.tv_usec; if (b > 1000000) @@ -134,9 +129,6 @@ struct UTIME: public timeval { // TODO optimize long long a, b; - /*a = tv_sec * 1000000 + tv_usec; - b = rhs.tv_sec * 1000000 + rhs.tv_usec; - return UTIME((a - b) / 1000000, (a - b) % 1000000);*/ a = tv_sec - rhs.tv_sec; b = tv_usec - rhs.tv_usec; if (a >= 0) @@ -176,4 +168,3 @@ struct UTIME: public timeval #endif //UTIME_H - -- 2.44.2