summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Time.h
diff options
context:
space:
mode:
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)