#include <lltimer.h>
Collaboration diagram for LLTimer:
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 () |
F32 | getElapsedTimeAndResetF32 () |
F64 | getElapsedTimeAndResetF64 () |
F32 | getRemainingTimeF32 () |
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 50 of file lltimer.h.
LLTimer::LLTimer | ( | ) |
Definition at line 225 of file lltimer.cpp.
References gClockFrequency, mStarted, reset(), TRUE, and update_clock_frequencies().
LLTimer::~LLTimer | ( | ) |
Definition at line 236 of file lltimer.cpp.
Definition at line 337 of file lltimer.cpp.
References FALSE, gClockFrequency, get_clock_count(), mExpirationTicks, and TRUE.
Referenced by LLTrackingData::haveTrackingInfo(), and LLParcel::isSaleTimerExpired().
static void LLTimer::cleanupClass | ( | ) | [inline, static] |
U64 LLTimer::getCurrentClockCount | ( | ) | [static] |
static F64 LLTimer::getElapsedSeconds | ( | ) | [inline, static] |
Definition at line 69 of file lltimer.h.
References getElapsedTimeF64(), and sTimer.
Referenced by LLWorldMapView::draw(), LLFloaterWorldMap::draw(), and LLViewerJointMesh::updateGeometry().
F32 LLTimer::getElapsedTimeAndResetF32 | ( | ) |
Definition at line 313 of file lltimer.cpp.
References getElapsedTimeAndResetF64().
Referenced by LLVolumeImplFlexible::doFlexibleUpdate(), LLToolGrab::handleHoverActive(), idle(), LLWorldEvent::incCount(), and LLViewerRegion::updateNetStats().
F64 LLTimer::getElapsedTimeAndResetF64 | ( | ) |
Definition at line 308 of file lltimer.cpp.
References gClockFrequencyInv, getElapsedTimeAndUpdate(), and mLastClockCount.
Referenced by getElapsedTimeAndResetF32().
F32 LLTimer::getElapsedTimeF32 | ( | ) | const |
Definition at line 303 of file lltimer.cpp.
References getElapsedTimeF64().
Referenced by LLAgentPilot::addAction(), LLFrameStats::addFrameData(), LLFixedBuffer::addLine(), LLConsole::addLine(), LLVOAvatar::buildCharacter(), LLViewerImageList::decodeAllImages(), LLTemplateMessageReader::decodeData(), display(), LLProgressView::draw(), LLNotifyBox::draw(), LLGroupNotifyBox::draw(), LLConsole::draw(), LLWorldMap::eraseItems(), LLVFS::findFreeBlock(), LLVLComposition::generateTexture(), LLAvatarListEntry::getActivity(), LLTrustNetDatum::getAge(), LLWorldEvent::getAge(), LLCircuitData::getAgeInSeconds(), LLAvatarListEntry::getEntryAgeSeconds(), LLCircuitData::getInfoString(), LLKeyboard::getKeyElapsedTime(), LLAvatarListDatum< LLAvatarInfo >::getStatus(), idle(), idle_network(), idle_shutdown(), idle_startup(), LLSurface::idleUpdate(), lscript_run(), main(), main_loop(), LLScrollingPanelParam::onHintHeldDown(), operator<<(), LLXMLRPCTransaction::Impl::process(), LLAudioDecodeMgr::Impl::processQueue(), pump_loop(), LLTracker::renderBeacon(), LLXferManager::retransmitUnackedPackets(), LLAvatarListDatum< LLAvatarInfo >::retryNeeded(), send_stats(), LLPacketRing::sendPacket(), LLManipScale::sendUpdates(), LLAvatarListEntry::setActivity(), LLMessageSystem::summarizeLogs(), LLVOAvatar::updateCharacter(), LLViewerImage::updateClass(), LLViewerStats::updateFrameStats(), LLPipeline::updateGeom(), LLViewerImageList::updateImagesCreateTextures(), LLViewerImageList::updateImagesFetchTextures(), LLPanelGroupGeneral::updateMembers(), LLWorld::updateRegions(), and LLAgentPilot::updateTarget().
F64 LLTimer::getElapsedTimeF64 | ( | ) | const |
Definition at line 297 of file lltimer.cpp.
References gClockFrequencyInv, getElapsedTimeAndUpdate(), and mLastClockCount.
Referenced by LLStat::addValue(), cleanup_app(), LLVertexBuffer::clientCopy(), getElapsedSeconds(), getElapsedTimeF32(), main_loop(), LLStat::start(), LLViewerJointMesh::updateGeometry(), and LLQueuedThread::updateQueue().
F32 LLTimer::getRemainingTimeF32 | ( | ) |
Definition at line 326 of file lltimer.cpp.
References gClockFrequencyInv, get_clock_count(), and mExpirationTicks.
Referenced by LLParcel::exportStream(), and LLParcel::getSaleTimerExpires().
BOOL LLTimer::getStarted | ( | ) | const [inline] |
Definition at line 100 of file lltimer.h.
References mStarted.
Referenced by LLParcel::exportStream(), and LLParcel::isSaleTimerExpired().
F64 LLTimer::getTotalSeconds | ( | ) | [static] |
Definition at line 248 of file lltimer.cpp.
References getTotalTime(), U64_to_F64(), and USEC_TO_SEC_F64.
U64 LLTimer::getTotalTime | ( | ) | [static] |
Definition at line 241 of file lltimer.cpp.
References totalTime().
Referenced by getTotalSeconds().
BOOL LLTimer::hasExpired | ( | ) |
Definition at line 351 of file lltimer.cpp.
References FALSE, get_clock_count(), mExpirationTicks, and TRUE.
Referenced by LLPanelGroup::draw(), LLMessageSystem::establishBidirectionalTrust(), LLHTTPAssetStorage::getURLToFile(), pump_loop(), tut::rpc_server_data::pump_loop(), tut::HTTPClientTestData::runThePump(), and LLVoiceClient::stateMachine().
static void LLTimer::initClass | ( | ) | [inline, static] |
BOOL LLTimer::knownBadTimer | ( | ) | [static] |
Definition at line 359 of file lltimer.cpp.
References FALSE, NULL, S32, and TRUE.
Referenced by idle_startup(), and LLViewerStats::LLViewerStats().
void LLTimer::reset | ( | ) |
Definition at line 253 of file lltimer.cpp.
References get_clock_count(), mExpirationTicks, and mLastClockCount.
Referenced by app_request_quit(), LLWorldEvent::checkDuration(), cleanup_app(), LLFixedBuffer::clear(), LLVertexBuffer::clientCopy(), LLTemplateMessageReader::decodeData(), LLWorldMap::eraseItems(), LLKeyboard::handleTranslatedKeyDown(), idle_startup(), LLWorldEvent::incCount(), LLViewerRegion::initStats(), LLFixedBuffer::LLFixedBuffer(), LLTimer(), lscript_run(), main_loop(), LLScrollingPanelParam::onHintMouseDown(), LLAudioDecodeMgr::Impl::processQueue(), send_logout_request(), LLXfer::sendPacket(), LLPacketRing::sendPacket(), LLManipScale::sendUpdates(), start(), LLToolGrab::startGrab(), LLAgentPilot::startPlayback(), LLAgentPilot::startRecord(), LLAgentPilot::stopPlayback(), LLFrameStats::timedLogging10(), LLFrameStats::timedLogging30(), LLFrameStats::timedLogging60(), LLViewerImage::updateClass(), LLPanelFriends::updateFriends(), LLPanelGroupGeneral::updateMembers(), and LLAgentPilot::updateTarget().
Definition at line 320 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(), LLTrackingData::LLTrackingData(), LLParcel::overrideSaleTimerExpires(), pump_loop(), tut::rpc_server_data::pump_loop(), LLPanelGroup::refreshData(), tut::HTTPClientTestData::runThePump(), LLTrackingData::setTrackedCoarseLocation(), LLParcel::startSale(), and LLVoiceClient::stateMachine().
Definition at line 82 of file lltimer.h.
References mStarted, reset(), and TRUE.
Referenced by LLParcel::importStream(), LLAvatarListDatum< LLAvatarInfo >::LLAvatarListDatum(), LLFloaterAvatarList::LLFloaterAvatarList(), LLPanelGroup::refreshData(), LLAvatarListDatum< LLAvatarInfo >::requestStarted(), LLAvatarListEntry::setActivity(), LLAvatarListEntry::setPosition(), LLParcel::startSale(), LLVoiceClient::stateMachine(), LLTrustNetDatum::updated(), and LLPanelFriends::updateFriends().
void LLTimer::stop | ( | ) | [inline] |
Definition at line 83 of file lltimer.h.
References FALSE, and mStarted.
Referenced by LLParcel::clearSale(), LLParcel::completeSale(), LLPanelGroup::draw(), LLParcel::expireSale(), LLParcel::init(), LLParcel::isSaleTimerExpired(), LLPanelFriends::LLPanelFriends(), and LLPanelFriends::tick().
U64 LLTimer::mExpirationTicks [protected] |
Definition at line 57 of file lltimer.h.
Referenced by checkExpirationAndReset(), getRemainingTimeF32(), hasExpired(), reset(), and setTimerExpirySec().
U64 LLTimer::mLastClockCount [protected] |
Definition at line 56 of file lltimer.h.
Referenced by getElapsedTimeAndResetF64(), getElapsedTimeF64(), reset(), and setLastClockCount().
BOOL LLTimer::mStarted [protected] |
LLTimer * LLTimer::sTimer = NULL [static] |
Definition at line 53 of file lltimer.h.
Referenced by cleanupClass(), getElapsedSeconds(), and initClass().