Space Engineers
Public Types | Public Member Functions | Public Attributes | List of all members
VRage.Stats.MyStats Class Reference

Public Types

enum  SortEnum { SortEnum.None, SortEnum.Name }
 

Public Member Functions

void Clear ()
 Clears all stats (doesn't remove them) More...
 
void RemoveAll ()
 Removes all stats More...
 
void Remove (string name)
 Remove a stat More...
 
void Clear (string name)
 
void Increment (string name, int refreshMs=0, int clearRateMs=-1)
 Increments an internal counter with given name and sets it to refresh after given time has passed. More...
 
MyStatToken Measure (string name, MyStatTypeEnum type, int refreshMs=200, int numDecimals=1, int clearRateMs=-1)
 
MyStatToken Measure (string name)
 
void Write (string name, float value, MyStatTypeEnum type, int refreshMs, int numDecimals, int clearRateMs=-1)
 Write stat, colon and space is added automatically More...
 
void Write (string name, long value, MyStatTypeEnum type, int refreshMs, int numDecimals, int clearRateMs=-1)
 Write stat, colon and space is added automatically More...
 
void WriteFormat (string name, float value, MyStatTypeEnum type, int refreshMs, int numDecimals, int clearRateMs=-1)
 Write stat using format string Number of arguments in format string: MinMaxAvg - three MinMax - two Other - one More...
 
void WriteFormat (string name, long value, MyStatTypeEnum type, int refreshMs, int numDecimals, int clearRateMs=-1)
 Write stat using format string Number of arguments in format string: MinMaxAvg - three MinMax - two Other - one More...
 
void WriteTo (StringBuilder writeTo)
 

Public Attributes

volatile SortEnum Sort = SortEnum.None
 

Detailed Description

Definition at line 10 of file MyStats.cs.

Member Enumeration Documentation

Enumerator
None 
Name 

Definition at line 12 of file MyStats.cs.

Member Function Documentation

void VRage.Stats.MyStats.Clear ( )
inline

Clears all stats (doesn't remove them)

Definition at line 58 of file MyStats.cs.

void VRage.Stats.MyStats.Clear ( string  name)
inline

Definition at line 91 of file MyStats.cs.

void VRage.Stats.MyStats.Increment ( string  name,
int  refreshMs = 0,
int  clearRateMs = -1 
)
inline

Increments an internal counter with given name and sets it to refresh after given time has passed.

Definition at line 99 of file MyStats.cs.

MyStatToken VRage.Stats.MyStats.Measure ( string  name,
MyStatTypeEnum  type,
int  refreshMs = 200,
int  numDecimals = 1,
int  clearRateMs = -1 
)
inline

Definition at line 104 of file MyStats.cs.

MyStatToken VRage.Stats.MyStats.Measure ( string  name)
inline

Definition at line 116 of file MyStats.cs.

void VRage.Stats.MyStats.Remove ( string  name)
inline

Remove a stat

Definition at line 83 of file MyStats.cs.

void VRage.Stats.MyStats.RemoveAll ( )
inline

Removes all stats

Definition at line 72 of file MyStats.cs.

void VRage.Stats.MyStats.Write ( string  name,
float  value,
MyStatTypeEnum  type,
int  refreshMs,
int  numDecimals,
int  clearRateMs = -1 
)
inline

Write stat, colon and space is added automatically

Definition at line 145 of file MyStats.cs.

void VRage.Stats.MyStats.Write ( string  name,
long  value,
MyStatTypeEnum  type,
int  refreshMs,
int  numDecimals,
int  clearRateMs = -1 
)
inline

Write stat, colon and space is added automatically

Definition at line 153 of file MyStats.cs.

void VRage.Stats.MyStats.WriteFormat ( string  name,
float  value,
MyStatTypeEnum  type,
int  refreshMs,
int  numDecimals,
int  clearRateMs = -1 
)
inline

Write stat using format string Number of arguments in format string: MinMaxAvg - three MinMax - two Other - one

Definition at line 165 of file MyStats.cs.

void VRage.Stats.MyStats.WriteFormat ( string  name,
long  value,
MyStatTypeEnum  type,
int  refreshMs,
int  numDecimals,
int  clearRateMs = -1 
)
inline

Write stat using format string Number of arguments in format string: MinMaxAvg - three MinMax - two Other - one

Definition at line 177 of file MyStats.cs.

void VRage.Stats.MyStats.WriteTo ( StringBuilder  writeTo)
inline

Definition at line 182 of file MyStats.cs.

Member Data Documentation

volatile SortEnum VRage.Stats.MyStats.Sort = SortEnum.None

Definition at line 21 of file MyStats.cs.


The documentation for this class was generated from the following file: