#include <lltimer.h>
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 LLTimer * | sTimer = NULL |
Protected Attributes | |
U64 | mLastClockCount |
U64 | mExpirationTicks |
BOOL | mStarted |
Definition at line 52 of file lltimer.h.
LLTimer::LLTimer | ( | ) |
Definition at line 236 of file lltimer.cpp.
References gClockFrequency, mStarted, reset(), TRUE, and update_clock_frequencies().
LLTimer::~LLTimer | ( | ) |
Definition at line 247 of file lltimer.cpp.
static void LLTimer::initClass | ( | ) | [inline, static] |
Definition at line 66 of file lltimer.h.
References sTimer.
Referenced by LLCommon::initClass().
static void LLTimer::cleanupClass | ( | ) | [inline, static] |
Definition at line 67 of file lltimer.h.
Referenced by LLCommon::cleanupClass().
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().
U64 LLTimer::getTotalTime | ( | ) | [static] |
Definition at line 252 of file lltimer.cpp.
References totalTime().
Referenced by getTotalSeconds().
F64 LLTimer::getTotalSeconds | ( | ) | [static] |
Definition at line 259 of file lltimer.cpp.
References getTotalTime(), U64_to_F64(), and USEC_TO_SEC_F64.
void LLTimer::start | ( | void | ) | [inline] |
Definition at line 84 of file lltimer.h.
References mStarted, reset(), and TRUE.
Referenced by LLLocalFriendsObserver::changed(), LLNotifyBox::draw(), LLParcel::importStream(), LLPanelGroup::refreshData(), LLPanelFriends::refreshNames(), LLWatchdogTimeout::start(), LLParcel::startSale(), LLVoiceClient::stateMachine(), and LLPanelFriends::updateFriends().
void LLTimer::stop | ( | ) | [inline] |
Definition at line 85 of file lltimer.h.
References FALSE, and mStarted.
Referenced by LLParcel::clearSale(), LLParcel::completeSale(), LLPanelGroup::draw(), LLNotifyBox::draw(), LLParcel::expireSale(), LLParcel::init(), LLParcel::isSaleTimerExpired(), LLLocalFriendsObserver::LLLocalFriendsObserver(), LLPanelFriends::LLPanelFriends(), LLWatchdogTimeout::stop(), LLPanelFriends::tick(), and LLLocalFriendsObserver::tick().
void LLTimer::reset | ( | ) |
Definition at line 264 of file lltimer.cpp.
References get_clock_count(), mExpirationTicks, and mLastClockCount.
Referenced by LLAppViewer::cleanup(), LLFixedBuffer::clear(), LLTemplateMessageReader::decodeData(), LLFolderViewFolder::draw(), LLWorldMap::eraseItems(), LLKeyboard::handleTranslatedKeyDown(), idle_startup(), LLViewerRegion::initStats(), LLFixedBuffer::LLFixedBuffer(), LLHeartbeat::LLHeartbeat(), LLTimer(), lscript_run(), LLAppViewer::mainLoop(), LLScrollingPanelParam::onHintMouseDown(), LLAudioDecodeMgr::Impl::processQueue(), LLHeartbeat::rawSendWithTimeout(), LLAppViewer::requestQuit(), LLHeartbeat::send(), LLAppViewer::sendLogoutRequest(), LLXfer::sendPacket(), LLPacketRing::sendPacket(), LLManipScale::sendUpdates(), start(), LLToolGrab::startGrab(), LLAgentPilot::startPlayback(), LLAgentPilot::startRecord(), LLAgentPilot::stopPlayback(), LLFrameStats::timedLogging10(), LLFrameStats::timedLogging30(), LLFrameStats::timedLogging60(), LLViewerImage::updateClass(), LLEventTimer::updateClass(), LLPanelGroupGeneral::updateMembers(), and LLAgentPilot::updateTarget().
void LLTimer::setLastClockCount | ( | U64 | current_count | ) |
void LLTimer::setTimerExpirySec | ( | F32 | expiration | ) |
Definition at line 331 of file lltimer.cpp.
References gClockFrequency, get_clock_count(), and mExpirationTicks.
Referenced by LLTrackingData::agentFound(), LLParcel::clearSale(), LLParcel::completeSale(), LLMessageSystem::establishBidirectionalTrust(), LLParcel::expireSale(), LLHTTPAssetStorage::getURLToFile(), LLTrackingData::haveTrackingInfo(), LLParcel::importStream(), LLParcel::init(), LLHeartbeat::LLHeartbeat(), LLTrackingData::LLTrackingData(), LLParcel::overrideSaleTimerExpires(), LLWatchdogTimeout::ping(), pump_loop(), tut::rpc_server_data::pump_loop(), LLHeartbeat::rawSendWithTimeout(), LLPanelGroup::refreshData(), tut::HTTPClientTestData::runThePump(), LLHeartbeat::send(), LLTrackingData::setTrackedCoarseLocation(), LLWatchdogTimeout::start(), LLParcel::startSale(), and LLVoiceClient::stateMachine().
Definition at line 348 of file lltimer.cpp.
References FALSE, gClockFrequency, get_clock_count(), mExpirationTicks, and TRUE.
Referenced by LLTrackingData::haveTrackingInfo(), and LLParcel::isSaleTimerExpired().
BOOL LLTimer::hasExpired | ( | ) | const |
Definition at line 362 of file lltimer.cpp.
References FALSE, get_clock_count(), mExpirationTicks, and TRUE.
Referenced by LLPanelGroup::draw(), LLMessageSystem::establishBidirectionalTrust(), LLHTTPAssetStorage::getURLToFile(), LLWatchdogTimeout::isAlive(), pump_loop(), tut::rpc_server_data::pump_loop(), LLHeartbeat::rawSendWithTimeout(), tut::HTTPClientTestData::runThePump(), LLHeartbeat::send(), and LLVoiceClient::stateMachine().
F32 LLTimer::getElapsedTimeAndResetF32 | ( | ) |
Definition at line 324 of file lltimer.cpp.
References getElapsedTimeAndResetF64().
Referenced by LLVolumeImplFlexible::doFlexibleUpdate(), LLToolGrab::handleHoverActive(), LLAppViewer::idle(), and LLViewerRegion::updateNetStats().
F64 LLTimer::getElapsedTimeAndResetF64 | ( | ) |
Definition at line 319 of file lltimer.cpp.
References gClockFrequencyInv, getElapsedTimeAndUpdate(), and mLastClockCount.
Referenced by getElapsedTimeAndResetF32(), and LLWLParamSet::updateCloudScrolling().
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().
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().
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().
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().
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().
U64 LLTimer::getCurrentClockCount | ( | ) | [static] |
Definition at line 272 of file lltimer.cpp.
References get_clock_count().
LLTimer * LLTimer::sTimer = NULL [static] |
Definition at line 55 of file lltimer.h.
Referenced by cleanupClass(), getElapsedSeconds(), and initClass().
U64 LLTimer::mLastClockCount [protected] |
Definition at line 58 of file lltimer.h.
Referenced by getElapsedTimeAndResetF64(), getElapsedTimeF64(), reset(), and setLastClockCount().
U64 LLTimer::mExpirationTicks [protected] |
Definition at line 59 of file lltimer.h.
Referenced by checkExpirationAndReset(), getRemainingTimeF32(), hasExpired(), reset(), and setTimerExpirySec().
BOOL LLTimer::mStarted [protected] |