lltimer.cpp File Reference

Cross-platform objects for doing timing. More...

#include "linden_common.h"
#include "lltimer.h"
#include "u64.h"

Include dependency graph for lltimer.cpp:

Go to the source code of this file.

Functions

void update_clock_frequencies ()
U64 totalTime ()
static U64 getElapsedTimeAndUpdate (U64 &lastClockCount)
U32 time_corrected ()
BOOL is_daylight_savings ()
struct tm * utc_to_pacific_time (S32 utc_time, BOOL pacific_daylight_time)
void microsecondsToTimecodeString (U64 current_time, char *tcstring)
void secondsToTimecodeString (F32 current_time, char *tcstring)

Variables

const U32 SEC_PER_DAY = 86400
const F64 SEC_TO_MICROSEC = 1000000.f
const U64 SEC_TO_MICROSEC_U64 = 1000000
const F64 USEC_TO_SEC_F64 = 0.000001
S32 gUTCOffset = 0
F64 gClockFrequency = 0.0
F64 gClockFrequencyInv = 0.0
F64 gClocksToMicroseconds = 0.0
U64 gTotalTimeClockCount = 0
U64 gLastTotalTimeClockCount = 0


Detailed Description

Cross-platform objects for doing timing.

LicenseInfo
firstyear=2000&license=viewergpl

Copyright (c) 2000-2008, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file lltimer.cpp.


Function Documentation

static U64 getElapsedTimeAndUpdate ( U64 lastClockCount  )  [static]

Definition at line 287 of file lltimer.cpp.

References get_clock_count().

Referenced by LLTimer::getElapsedTimeAndResetF64(), and LLTimer::getElapsedTimeF64().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL is_daylight_savings (  ) 

Definition at line 441 of file lltimer.cpp.

References NULL, and tut::tm().

Here is the call graph for this function:

void microsecondsToTimecodeString ( U64  current_time,
char *  tcstring 
)

Definition at line 489 of file lltimer.cpp.

Referenced by LLViewerWindow::draw(), and secondsToTimecodeString().

Here is the caller graph for this function:

void secondsToTimecodeString ( F32  current_time,
char *  tcstring 
)

Definition at line 511 of file lltimer.cpp.

References microsecondsToTimecodeString(), and SEC_TO_MICROSEC.

Here is the call graph for this function:

U32 time_corrected (  ) 

U64 totalTime (  ) 

void update_clock_frequencies (  ) 

Definition at line 181 of file lltimer.cpp.

References calc_clock_frequency(), gClockFrequency, gClockFrequencyInv, gClocksToMicroseconds, and SEC_TO_MICROSEC.

Referenced by LLTimer::LLTimer(), and totalTime().

Here is the call graph for this function:

Here is the caller graph for this function:

struct tm* utc_to_pacific_time ( S32  utc_time,
BOOL  pacific_daylight_time 
) [read]


Variable Documentation

Definition at line 68 of file lltimer.cpp.

Referenced by totalTime(), and update_clock_frequencies().

Definition at line 70 of file lltimer.cpp.

Referenced by totalTime().

Definition at line 69 of file lltimer.cpp.

Referenced by totalTime().

Definition at line 63 of file lltimer.cpp.

Referenced by idle_startup(), and time_corrected().

const U32 SEC_PER_DAY = 86400

Definition at line 53 of file lltimer.cpp.

const F64 SEC_TO_MICROSEC = 1000000.f

const U64 SEC_TO_MICROSEC_U64 = 1000000

Definition at line 55 of file lltimer.cpp.

const F64 USEC_TO_SEC_F64 = 0.000001

Definition at line 56 of file lltimer.cpp.


Generated on Fri May 16 08:34:53 2008 for SecondLife by  doxygen 1.5.5