LLTimer Class Reference

#include <lltimer.h>

Collaboration diagram for LLTimer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLTimer ()
 ~LLTimer ()
void start ()
void stop ()
void reset ()
void setLastClockCount (U64 current_count)
void setTimerExpirySec (F32 expiration)
BOOL checkExpirationAndReset (F32 expiration)
BOOL hasExpired () const
F32 getElapsedTimeAndResetF32 ()
F64 getElapsedTimeAndResetF64 ()
F32 getRemainingTimeF32 () const
F32 getElapsedTimeF32 () const
F64 getElapsedTimeF64 () const
BOOL getStarted () const

Static Public Member Functions

static void initClass ()
static void cleanupClass ()
static F64 getElapsedSeconds ()
static U64 getTotalTime ()
static F64 getTotalSeconds ()
static BOOL knownBadTimer ()
static U64 getCurrentClockCount ()

Static Public Attributes

static LLTimersTimer = NULL

Protected Attributes

U64 mLastClockCount
U64 mExpirationTicks
BOOL mStarted


Detailed Description

Definition at line 52 of file lltimer.h.


Constructor & Destructor Documentation

LLTimer::LLTimer (  ) 

Definition at line 236 of file lltimer.cpp.

References gClockFrequency, mStarted, reset(), TRUE, and update_clock_frequencies().

Here is the call graph for this function:

LLTimer::~LLTimer (  ) 

Definition at line 247 of file lltimer.cpp.


Member Function Documentation

static void LLTimer::initClass (  )  [inline, static]

Definition at line 66 of file lltimer.h.

References sTimer.

Referenced by LLCommon::initClass().

Here is the caller graph for this function:

static void LLTimer::cleanupClass (  )  [inline, static]

Definition at line 67 of file lltimer.h.

References NULL, and sTimer.

Referenced by LLCommon::cleanupClass().

Here is the caller graph for this function:

static F64 LLTimer::getElapsedSeconds (  )  [inline, static]

Definition at line 71 of file lltimer.h.

References getElapsedTimeF64(), and sTimer.

Referenced by LLWorldMapView::draw(), LLFloaterWorldMap::draw(), LLWLAnimator::getDayTime(), LLWLAnimator::setDayTime(), and LLViewerJointMesh::updateGeometry().

Here is the call graph for this function:

Here is the caller graph for this function:

U64 LLTimer::getTotalTime (  )  [static]

Definition at line 252 of file lltimer.cpp.

References totalTime().

Referenced by getTotalSeconds().

Here is the call graph for this function:

Here is the caller graph for this function:

F64 LLTimer::getTotalSeconds (  )  [static]

Definition at line 259 of file lltimer.cpp.

References getTotalTime(), U64_to_F64(), and USEC_TO_SEC_F64.

Here is the call graph for this function:

void LLTimer::start ( void   )  [inline]

void LLTimer::stop (  )  [inline]

void LLTimer::reset (  ) 

void LLTimer::setLastClockCount ( U64  current_count  ) 

Definition at line 279 of file lltimer.cpp.

References mLastClockCount.

void LLTimer::setTimerExpirySec ( F32  expiration  ) 

BOOL LLTimer::checkExpirationAndReset ( F32  expiration  ) 

Definition at line 348 of file lltimer.cpp.

References FALSE, gClockFrequency, get_clock_count(), mExpirationTicks, and TRUE.

Referenced by LLTrackingData::haveTrackingInfo(), and LLParcel::isSaleTimerExpired().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTimer::hasExpired (  )  const

F32 LLTimer::getElapsedTimeAndResetF32 (  ) 

Definition at line 324 of file lltimer.cpp.

References getElapsedTimeAndResetF64().

Referenced by LLVolumeImplFlexible::doFlexibleUpdate(), LLToolGrab::handleHoverActive(), LLAppViewer::idle(), and LLViewerRegion::updateNetStats().

Here is the call graph for this function:

Here is the caller graph for this function:

F64 LLTimer::getElapsedTimeAndResetF64 (  ) 

Definition at line 319 of file lltimer.cpp.

References gClockFrequencyInv, getElapsedTimeAndUpdate(), and mLastClockCount.

Referenced by getElapsedTimeAndResetF32(), and LLWLParamSet::updateCloudScrolling().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLTimer::getRemainingTimeF32 (  )  const

Definition at line 337 of file lltimer.cpp.

References gClockFrequencyInv, get_clock_count(), and mExpirationTicks.

Referenced by LLParcel::exportStream(), and LLParcel::getSaleTimerExpires().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTimer::knownBadTimer (  )  [static]

Definition at line 370 of file lltimer.cpp.

References FALSE, NULL, S32, and TRUE.

Referenced by idle_startup(), and LLViewerStats::LLViewerStats().

Here is the caller graph for this function:

F32 LLTimer::getElapsedTimeF32 (  )  const

Definition at line 314 of file lltimer.cpp.

References getElapsedTimeF64().

Referenced by LLAgentPilot::addAction(), LLFrameStats::addFrameData(), LLConsole::addLine(), LLFixedBuffer::addLine(), LLVOAvatar::buildCharacter(), LLViewerImageList::decodeAllImages(), LLTemplateMessageReader::decodeData(), display(), LLDelayedGestureError::doDialog(), LLProgressView::draw(), LLNotifyBox::draw(), LLGroupNotifyBox::draw(), LLFolderViewItem::draw(), LLConsole::draw(), LLWorldMap::eraseItems(), LLVFS::findFreeBlock(), LLVLComposition::generateTexture(), LLCircuitData::getAgeInSeconds(), LLCircuitData::getInfo(), LLKeyboard::getKeyElapsedTime(), LLAppViewer::idle(), idle_startup(), LLAppViewer::idleNetwork(), LLAppViewer::idleShutdown(), LLSurface::idleUpdate(), LLAppViewer::init(), lscript_run(), LLAppViewer::mainLoop(), LLScrollingPanelParam::onHintHeldDown(), operator<<(), LLXMLRPCTransaction::Impl::process(), LLAudioDecodeMgr::Impl::processQueue(), pump_loop(), LLTracker::renderBeacon(), LLXferManager::retransmitUnackedPackets(), LLHeartbeat::send(), send_stats(), LLPacketRing::sendPacket(), LLManipScale::sendUpdates(), LLMessageSystem::summarizeLogs(), LLVOAvatar::updateCharacter(), LLViewerImage::updateClass(), LLEventTimer::updateClass(), LLViewerStats::updateFrameStats(), LLPipeline::updateGeom(), LLViewerImageList::updateImagesCreateTextures(), LLViewerImageList::updateImagesFetchTextures(), LLPanelGroupGeneral::updateMembers(), LLWorld::updateRegions(), and LLAgentPilot::updateTarget().

Here is the call graph for this function:

F64 LLTimer::getElapsedTimeF64 (  )  const

Definition at line 308 of file lltimer.cpp.

References gClockFrequencyInv, getElapsedTimeAndUpdate(), and mLastClockCount.

Referenced by LLStat::addValue(), LLAppViewer::cleanup(), getElapsedSeconds(), getElapsedTimeF32(), LLAppViewer::mainLoop(), LLStat::start(), LLViewerJointMesh::updateGeometry(), and LLQueuedThread::updateQueue().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL LLTimer::getStarted (  )  const [inline]

Definition at line 102 of file lltimer.h.

References mStarted.

Referenced by LLNotifyBox::draw(), LLParcel::exportStream(), LLWatchdogTimeout::isAlive(), and LLParcel::isSaleTimerExpired().

Here is the caller graph for this function:

U64 LLTimer::getCurrentClockCount (  )  [static]

Definition at line 272 of file lltimer.cpp.

References get_clock_count().

Here is the call graph for this function:


Member Data Documentation

LLTimer * LLTimer::sTimer = NULL [static]

Definition at line 55 of file lltimer.h.

Referenced by cleanupClass(), getElapsedSeconds(), and initClass().

Definition at line 58 of file lltimer.h.

Referenced by getElapsedTimeAndResetF64(), getElapsedTimeF64(), reset(), and setLastClockCount().

BOOL LLTimer::mStarted [protected]

Definition at line 60 of file lltimer.h.

Referenced by getStarted(), LLTimer(), start(), and stop().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:15:43 2008 for SecondLife by  doxygen 1.5.5