CTimeValue

Class Hierarchy
C++
class CTimeValue;
File

TimeValue.h

Description

MSC_VER > 1000

CTimeValue::TIMEVALUE_PRECISION Data Member
C++
const int64 TIMEVALUE_PRECISION = 100000;
Description

one second

CTimeValue::- Operator ()
C++
CTimeValue operator -() const;
Description

Unary minus.

CTimeValue::- Operator (CTimeValue &)
C++
CTimeValue operator -(const CTimeValue & inRhs) const;
Description

Minus.

CTimeValue::!= Operator
C++
bool operator !=(const CTimeValue & inRhs) const;
CTimeValue::/= Operator
C++
CTimeValue& operator /=(int inRhs);
CTimeValue::~CTimeValue Destructor
C++
Description

Destructor.

CTimeValue::+ Operator
C++
CTimeValue operator +(const CTimeValue & inRhs) const;
Description

Plus.

CTimeValue::+= Operator
C++
CTimeValue& operator +=(const CTimeValue& inRhs);
CTimeValue::< Operator
C++
bool operator <(const CTimeValue & inRhs) const;
Description

comparison

CTimeValue::<= Operator
C++
bool operator <=(const CTimeValue & inRhs) const;
CTimeValue::= Operator
C++
CTimeValue& operator =(const CTimeValue & inRhs);
Parameters
Parameters
Description
const CTimeValue & inRhs
Right side.
Description

Assignment operator.

CTimeValue::-= Operator
C++
CTimeValue& operator -=(const CTimeValue& inRhs);
CTimeValue::== Operator
C++
bool operator ==(const CTimeValue & inRhs) const;
CTimeValue::> Operator
C++
bool operator >(const CTimeValue & inRhs) const;
CTimeValue::>= Operator
C++
bool operator >=(const CTimeValue & inRhs) const;
CTimeValue::CTimeValue Constructor ()
C++
CTimeValue();
CTimeValue(const double fSeconds);
Description

Default constructor.

CTimeValue::CTimeValue Constructor (CTimeValue &)
C++
CTimeValue(const CTimeValue & inValue);
Description

Copy constructor.

CTimeValue::CTimeValue Constructor (float)
C++
CTimeValue(const float fSeconds);
Description

Constructor.

CTimeValue::CTimeValue Constructor (int64)
C++
CTimeValue(const int64 inllValue);
Parameters
Parameters
Description
const int64 inllValue
positive negative, absolute or relative in 1 second= TIMEVALUE_PRECISION units.
Description

Constructor.

CTimeValue::GetDifferenceInSeconds Method
C++
float GetDifferenceInSeconds(const CTimeValue& startTime) const;
Description

Get relative time difference in seconds - call on the endTime object: endTime.GetDifferenceInSeconds( startTime );

CTimeValue::GetMemoryStatistics Method
C++
AUTO_STRUCT_INFO void GetMemoryStatistics(class ICrySizer* pSizer) const;
CTimeValue::GetMemoryUsage Method
C++
void GetMemoryUsage(class ICrySizer * pSizer) const;
CTimeValue::GetMicroSecondsAsInt64 Method
C++
int64 GetMicroSecondsAsInt64() const;
CTimeValue::GetMilliSeconds Method
C++
float GetMilliSeconds() const;
Description

Use only for relative value, absolute values suffer a lot from precision loss.

CTimeValue::GetMilliSecondsAsInt64 Method
C++
int64 GetMilliSecondsAsInt64() const;
CTimeValue::GetPeriodicFraction Method
C++
float GetPeriodicFraction(const CTimeValue TimePeriod) const;
Returns

[0..1[

Description

Useful for periodic events (e.g. water wave, blinking). Changing TimePeriod can results in heavy changes in the returned value.

CTimeValue::GetSeconds Method
C++
float GetSeconds() const;
Description

Use only for relative value, absolute values suffer a lot from precision loss.

CTimeValue::GetValue Method
C++
int64 GetValue() const;
CTimeValue::SetMilliSeconds Method
C++
void SetMilliSeconds(const int64 indwMilliSec);
CTimeValue::SetSeconds Method (double)
C++
void SetSeconds(const double infSec);
CTimeValue::SetSeconds Method (float)
C++
void SetSeconds(const float infSec);
CTimeValue::SetSeconds Method (int64)
C++
void SetSeconds(const int64 indwSec);
CTimeValue::SetValue Method
C++
void SetValue(int64 val);
friend class CTimer Friend
C++
friend class CTimer;