add RageTimer::operator+=
cleanup
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user