X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..becf6dfe4fe2ecd43792aa53a302c5866483f306:/include/utime.h?ds=inline 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 -