add RageTimer::Half

This commit is contained in:
Glenn Maynard
2003-07-20 19:13:03 +00:00
parent b656bda455
commit e3274ec002
2 changed files with 20 additions and 0 deletions
+3
View File
@@ -42,6 +42,9 @@ public:
/* deprecated: */
static float GetTimeSinceStart(); // seconds since the program was started
/* Get a timer representing half of the time ago as this one. */
RageTimer Half() const;
/* Add (or subtract) a duration from a timestamp. The result is another timestamp. */
RageTimer operator+(float tm) const;