diff options
Diffstat (limited to 'indra/llcommon/lltimer.h')
-rwxr-xr-x | indra/llcommon/lltimer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/lltimer.h b/indra/llcommon/lltimer.h index 9e464c4b1a..9f1f243dbb 100755 --- a/indra/llcommon/lltimer.h +++ b/indra/llcommon/lltimer.h @@ -62,14 +62,14 @@ public: LLTimer(); ~LLTimer(); - static void initClass() { if (!sTimer) sTimer = new LLTimer; } - static void cleanupClass() { delete sTimer; sTimer = NULL; } + static void initClass(); + static void cleanupClass(); // Return a high precision number of seconds since the start of // this application instance. static LLUnitImplicit<F64, LLUnits::Seconds> getElapsedSeconds() { - return sTimer->getElapsedTimeF64(); + return sTimer ? sTimer->getElapsedTimeF64() : 0.0; } // Return a high precision usec since epoch |