Photon Server API Documentation
v5.0RC1
The average counter. More...
Public Member Functions | |
| AverageCounter () | |
| Initializes a new instance of the AverageCounter class. More... | |
| AverageCounter (string name) | |
| Initializes a new instance of the AverageCounter class. More... | |
| override long | Decrement () |
| Decrements the counter. More... | |
| override sealed RawCounterSample | GetNextSample () |
| Gets the next sample. More... | |
| override float | GetNextValue () |
| Returns the average count since the last GetNextValue call. More... | |
| override long | Increment () |
| Increments the counter. More... | |
| override long | IncrementBy (long value) |
| Increments the counter by a value. More... | |
Properties | |
| override CounterType | CounterType [get] |
| Gets the type of the counter. More... | |
Properties inherited from ExitGames.Diagnostics.Counter.CounterBase | |
| abstract CounterType | CounterType [get] |
| Gets the type of the counter. More... | |
| string | Name [get] |
| Gets Name. More... | |
| bool | IsValid [get, protected set] |
Properties inherited from ExitGames.Diagnostics.Counter.ICounter | |
| CounterType | CounterType [get] |
| Gets the type of the counter. More... | |
| string | Name [get] |
| Gets the name of the counter. More... | |
| bool | IsValid [get] |
| Returns whether counter is valid or not For WindowsPerfCounters this method may return value whether counter exists or not More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ExitGames.Diagnostics.Counter.CounterBase | |
| CounterBase () | |
| Initializes a new instance of the CounterBase class. More... | |
| CounterBase (string name) | |
| Initializes a new instance of the CounterBase class. More... | |
The average counter.
GetNextValue calculates the average counter since the previous GetNextValue call.
|
inline |
Initializes a new instance of the AverageCounter class.
|
inline |
Initializes a new instance of the AverageCounter class.
| name | The counter name. |
|
inlinevirtual |
Decrements the counter.
Implements ExitGames.Diagnostics.Counter.CounterBase.
|
inlinevirtual |
Gets the next sample.
This method is not thread safe.
Implements ExitGames.Diagnostics.Counter.CounterBase.
|
inlinevirtual |
Returns the average count since the last GetNextValue call.
This method is NOT thread safe.
Implements ExitGames.Diagnostics.Counter.CounterBase.
|
inlinevirtual |
Increments the counter.
Implements ExitGames.Diagnostics.Counter.CounterBase.
|
inlinevirtual |
Increments the counter by a value.
| value | The value. |
Implements ExitGames.Diagnostics.Counter.CounterBase.
|
get |
Gets the type of the counter.
The type of the counter.