diff options
author | Richard Linden <none@none> | 2012-11-08 23:42:18 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2012-11-08 23:42:18 -0800 |
commit | 0bb0bd514b235948c1a21c81ab0e8ab6223b1990 (patch) | |
tree | e0d49acc9074d0a5ed30c9c53fde908e5305b10f /indra/llcommon/lltimer.h | |
parent | ed17c181dd37f56b808838748d289ee7bb5567ec (diff) |
SH-3499 WIP Ensure asset stats output is correct
Finished making LLUnit implicitly convertible to/from scalar integer values
cleaned up test code
Diffstat (limited to 'indra/llcommon/lltimer.h')
-rw-r--r-- | indra/llcommon/lltimer.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/llcommon/lltimer.h b/indra/llcommon/lltimer.h index e0a880a346..5cb2b18111 100644 --- a/indra/llcommon/lltimer.h +++ b/indra/llcommon/lltimer.h @@ -67,16 +67,16 @@ public: // Return a high precision number of seconds since the start of // this application instance. - static LLUnit::Seconds<F64> getElapsedSeconds() + static LLUnit<LLUnits::Seconds, F64> getElapsedSeconds() { return sTimer->getElapsedTimeF64(); } // Return a high precision usec since epoch - static LLUnit::Microseconds<U64> getTotalTime(); + static LLUnit<LLUnits::Microseconds, U64> getTotalTime(); // Return a high precision seconds since epoch - static LLUnit::Seconds<F64> getTotalSeconds(); + static LLUnit<LLUnits::Seconds, F64> getTotalSeconds(); // MANIPULATORS @@ -87,16 +87,16 @@ public: void setTimerExpirySec(F32 expiration); BOOL checkExpirationAndReset(F32 expiration); BOOL hasExpired() const; - LLUnit::Seconds<F32> getElapsedTimeAndResetF32(); // Returns elapsed time in seconds with reset - LLUnit::Seconds<F64> getElapsedTimeAndResetF64(); + LLUnit<LLUnits::Seconds, F32> getElapsedTimeAndResetF32(); // Returns elapsed time in seconds with reset + LLUnit<LLUnits::Seconds, F64> getElapsedTimeAndResetF64(); - LLUnit::Seconds<F32> getRemainingTimeF32() const; + LLUnit<LLUnits::Seconds, F32> getRemainingTimeF32() const; static BOOL knownBadTimer(); // ACCESSORS - LLUnit::Seconds<F32> getElapsedTimeF32() const; // Returns elapsed time in seconds - LLUnit::Seconds<F64> getElapsedTimeF64() const; // Returns elapsed time in seconds + LLUnit<LLUnits::Seconds, F32> getElapsedTimeF32() const; // Returns elapsed time in seconds + LLUnit<LLUnits::Seconds, F64> getElapsedTimeF64() const; // Returns elapsed time in seconds bool getStarted() const { return mStarted; } |