diff options
author | Richard Linden <none@none> | 2013-08-12 20:08:18 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-08-12 20:08:18 -0700 |
commit | b39cf4770b6d73de51b0ed451139bb4502f396c8 (patch) | |
tree | 2bc7ee5889f619a86575e5b47d8e5dca42e98442 /indra/newview/llviewerobjectlist.cpp | |
parent | b8d49dab9afddf196618d66b1a409cdf7d2d53ba (diff) |
Backed out changeset: ed09997b4652
Diffstat (limited to 'indra/newview/llviewerobjectlist.cpp')
-rwxr-xr-x | indra/newview/llviewerobjectlist.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 214d4f2bf6..e8f68527e9 100755 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -999,10 +999,9 @@ void LLViewerObjectList::update(LLAgent &agent, LLWorld &world) // Time _can_ go backwards, for example if the user changes the system clock. // It doesn't cause any fatal problems (just some oddness with stats), so we shouldn't assert here. // llassert(time > gFrameTime); - const F64 SEC_TO_MICROSEC = 1000000.f; - F64 time_diff = U64_to_F64(time - gFrameTime)/SEC_TO_MICROSEC; + LLUnit<F64, LLUnits::Seconds> time_diff = time - gFrameTime; gFrameTime = time; - F64 time_since_start = U64_to_F64(gFrameTime - gStartTime)/SEC_TO_MICROSEC; + LLUnit<F64, LLUnits::Seconds> time_since_start = gFrameTime - gStartTime; gFrameTimeSeconds = time_since_start; gFrameIntervalSeconds = gFrameTimeSeconds - last_time; |