lltimer.h File Reference

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

#include "stdtypes.h"

Include dependency graph for lltimer.h:

Go to the source code of this file.

Classes

class  LLTimer
class  LLEventTimer

Functions

U64 get_clock_count ()
F64 calc_clock_frequency (U32 msecs)
void update_clock_frequencies ()
void ms_sleep (U32 ms)
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 USEC_PER_SEC = 1000000
const U32 SEC_PER_MIN = 60
const U32 MIN_PER_HOUR = 60
const U32 USEC_PER_MIN = USEC_PER_SEC * SEC_PER_MIN
const U32 USEC_PER_HOUR = USEC_PER_MIN * MIN_PER_HOUR
const U32 SEC_PER_HOUR = SEC_PER_MIN * MIN_PER_HOUR
const F64 SEC_PER_USEC = 1.0 / (F64) USEC_PER_SEC
S32 gUTCOffset


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.h.


Function Documentation

F64 calc_clock_frequency ( U32  msecs  ) 

Referenced by update_clock_frequencies().

Here is the caller graph for this function:

U64 get_clock_count (  ) 

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 ms_sleep ( U32  ms  ) 

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 (  ) 

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 63 of file lltimer.cpp.

Referenced by idle_startup(), and time_corrected().

const U32 MIN_PER_HOUR = 60

Definition at line 46 of file lltimer.h.

Referenced by utc_to_pacific_time().

Definition at line 49 of file lltimer.h.

const U32 SEC_PER_MIN = 60

Definition at line 45 of file lltimer.h.

Referenced by utc_to_pacific_time().

const F64 SEC_PER_USEC = 1.0 / (F64) USEC_PER_SEC

Definition at line 48 of file lltimer.h.

Definition at line 47 of file lltimer.h.

const U32 USEC_PER_SEC = 1000000


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