diff options
Diffstat (limited to 'indra/llcommon')
-rwxr-xr-x | indra/llcommon/lltimer.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/llcommon/lltimer.h b/indra/llcommon/lltimer.h index 9f1f243dbb..f2dc59e405 100755 --- a/indra/llcommon/lltimer.h +++ b/indra/llcommon/lltimer.h @@ -69,7 +69,14 @@ public: // this application instance. static LLUnitImplicit<F64, LLUnits::Seconds> getElapsedSeconds() { - return sTimer ? sTimer->getElapsedTimeF64() : 0.0; + if (sTimer) + { + return sTimer->getElapsedTimeF64(); + } + else + { + return 0; + } } // Return a high precision usec since epoch |