summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Time.h
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2005-11-01 05:43:28 +0000
committerMichi Henning <michi@zeroc.com>2005-11-01 05:43:28 +0000
commit20a6ad0efec775cfbf04c93a7244aa55a9e07d58 (patch)
tree549a3c591f7f9df7d805e6971a9b16429dc1c16b /cpp/include/IceUtil/Time.h
parentFixed http://www.zeroc.com/vbulletin/showthread.php?t=1612 (diff)
downloadice-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.h25
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)