add RageTimer::operator+=

cleanup
This commit is contained in:
Glenn Maynard
2005-01-26 20:53:21 +00:00
parent fde9e0cfc9
commit 4757f00aba
+1
View File
@@ -48,6 +48,7 @@ public:
/* Add (or subtract) a duration from a timestamp. The result is another timestamp. */ /* Add (or subtract) a duration from a timestamp. The result is another timestamp. */
RageTimer operator+( float tm ) const; RageTimer operator+( float tm ) const;
void operator+=( float tm ) { *this = *this + tm; }
/* Find the amount of time between two timestamps. The result is a duration. */ /* Find the amount of time between two timestamps. The result is a duration. */
float operator-( const RageTimer &rhs ) const; float operator-( const RageTimer &rhs ) const;