diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llframetimer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llframetimer.cpp b/linden/indra/llcommon/llframetimer.cpp index 5ae4a6b..2b53e8c 100644 --- a/linden/indra/llcommon/llframetimer.cpp +++ b/linden/indra/llcommon/llframetimer.cpp | |||
@@ -70,6 +70,12 @@ void LLFrameTimer::reset() | |||
70 | mExpiry = sFrameTime; | 70 | mExpiry = sFrameTime; |
71 | } | 71 | } |
72 | 72 | ||
73 | void LLFrameTimer::resetWithExpiry(F32 expiration) | ||
74 | { | ||
75 | reset(); | ||
76 | setTimerExpirySec(expiration); | ||
77 | } | ||
78 | |||
73 | // Don't combine pause/unpause with start/stop | 79 | // Don't combine pause/unpause with start/stop |
74 | // Useage: | 80 | // Useage: |
75 | // LLFrameTime foo; // starts automatically | 81 | // LLFrameTime foo; // starts automatically |