summaryrefslogtreecommitdiff
path: root/indra/llcharacter/llkeyframewalkmotion.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-06-01 15:51:14 -0500
committerDave Parks <davep@lindenlab.com>2012-06-01 15:51:14 -0500
commitae15778eebafa6c8f69cedd51fe5fe1a5f7b543b (patch)
tree76a83a42a0e0b4764649a19b98c36f135fb29828 /indra/llcharacter/llkeyframewalkmotion.cpp
parent02a88f42a248f96f6816af4f674dde23f6bad9ef (diff)
Add some timers.
Diffstat (limited to 'indra/llcharacter/llkeyframewalkmotion.cpp')
-rw-r--r--indra/llcharacter/llkeyframewalkmotion.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llcharacter/llkeyframewalkmotion.cpp b/indra/llcharacter/llkeyframewalkmotion.cpp
index d52eb89a5c..ea63f9f8dc 100644
--- a/indra/llcharacter/llkeyframewalkmotion.cpp
+++ b/indra/llcharacter/llkeyframewalkmotion.cpp
@@ -196,11 +196,15 @@ BOOL LLWalkAdjustMotion::onActivate()
return TRUE;
}
+static LLFastTimer::DeclareTimer FTM_WALK_ADJUST_MOTION("Walk Adjust");
+
//-----------------------------------------------------------------------------
// LLWalkAdjustMotion::onUpdate()
//-----------------------------------------------------------------------------
BOOL LLWalkAdjustMotion::onUpdate(F32 time, U8* joint_mask)
{
+ LLFastTimer t(FTM_WALK_ADJUST_MOTION);
+
// delta_time is guaranteed to be non zero
F32 delta_time = llclamp(time - mLastTime, TIME_EPSILON, MAX_TIME_DELTA);
mLastTime = time;