diff options
author | Michi Henning <michi@zeroc.com> | 2005-11-01 05:43:28 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-11-01 05:43:28 +0000 |
commit | 20a6ad0efec775cfbf04c93a7244aa55a9e07d58 (patch) | |
tree | 549a3c591f7f9df7d805e6971a9b16429dc1c16b /cpp/include/IceUtil/Time.h | |
parent | Fixed http://www.zeroc.com/vbulletin/showthread.php?t=1612 (diff) | |
download | ice-20a6ad0efec775cfbf04c93a7244aa55a9e07d58.tar.bz2 ice-20a6ad0efec775cfbf04c93a7244aa55a9e07d58.tar.xz ice-20a6ad0efec775cfbf04c93a7244aa55a9e07d58.zip |
Fixed bug 544.
Diffstat (limited to 'cpp/include/IceUtil/Time.h')
-rw-r--r-- | cpp/include/IceUtil/Time.h | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/cpp/include/IceUtil/Time.h b/cpp/include/IceUtil/Time.h index 91f909ec9aa..1d7d4ff1450 100644 --- a/cpp/include/IceUtil/Time.h +++ b/cpp/include/IceUtil/Time.h @@ -105,30 +105,9 @@ public: return _usec != rhs._usec; } - Time& operator*=(const Time& rhs) + double operator/(const Time& rhs) const { - _usec *= rhs._usec; - return *this; - } - - Time operator*(const Time& rhs) const - { - Time t; - t._usec = _usec * rhs._usec; - return t; - } - - Time& operator/=(const Time& rhs) - { - _usec /= rhs._usec; - return *this; - } - - Time operator/(const Time& rhs) const - { - Time t; - t._usec = _usec / rhs._usec; - return t; + return (double)_usec / (double)rhs._usec; } Time& operator*=(int rhs) |