class CTimeValue;
TimeValue.h
MSC_VER > 1000
const int64 TIMEVALUE_PRECISION = 100000;
one second
CTimeValue operator -() const;
Unary minus.
CTimeValue operator -(const CTimeValue & inRhs) const;
Minus.
bool operator !=(const CTimeValue & inRhs) const;
CTimeValue& operator /=(int inRhs);
~CTimeValue();
Destructor.
CTimeValue operator +(const CTimeValue & inRhs) const;
Plus.
CTimeValue& operator +=(const CTimeValue& inRhs);
bool operator <(const CTimeValue & inRhs) const;
comparison
bool operator <=(const CTimeValue & inRhs) const;
CTimeValue& operator =(const CTimeValue & inRhs);
Parameters |
Description |
const CTimeValue & inRhs |
Right side. |
Assignment operator.
CTimeValue& operator -=(const CTimeValue& inRhs);
bool operator ==(const CTimeValue & inRhs) const;
bool operator >(const CTimeValue & inRhs) const;
bool operator >=(const CTimeValue & inRhs) const;
CTimeValue(); CTimeValue(const double fSeconds);
Default constructor.
CTimeValue(const CTimeValue & inValue);
Copy constructor.
CTimeValue(const float fSeconds);
Constructor.
CTimeValue(const int64 inllValue);
Parameters |
Description |
const int64 inllValue |
positive negative, absolute or relative in 1 second= TIMEVALUE_PRECISION units. |
Constructor.
float GetDifferenceInSeconds(const CTimeValue& startTime) const;
Get relative time difference in seconds - call on the endTime object: endTime.GetDifferenceInSeconds( startTime );
AUTO_STRUCT_INFO void GetMemoryStatistics(class ICrySizer* pSizer) const;
void GetMemoryUsage(class ICrySizer * pSizer) const;
int64 GetMicroSecondsAsInt64() const;
float GetMilliSeconds() const;
Use only for relative value, absolute values suffer a lot from precision loss.
int64 GetMilliSecondsAsInt64() const;
float GetPeriodicFraction(const CTimeValue TimePeriod) const;
[0..1[
Useful for periodic events (e.g. water wave, blinking). Changing TimePeriod can results in heavy changes in the returned value.
float GetSeconds() const;
Use only for relative value, absolute values suffer a lot from precision loss.
int64 GetValue() const;
void SetMilliSeconds(const int64 indwMilliSec);
void SetSeconds(const double infSec);
void SetSeconds(const float infSec);
void SetSeconds(const int64 indwSec);
void SetValue(int64 val);
friend class CTimer;