Photon Server API
Public Member Functions | Public Attributes | List of all members
ExitGames.Diagnostics.Counter.CounterSample Struct Reference

Represents the value of a counter calculated at a specific time. More...

Public Member Functions

 CounterSample (float value)
 Initializes a new instance of the CounterSample struct. The Timestamp property is set to DateTime.UtcNow. More...
 
 CounterSample (DateTime timestamp, float value)
 Initializes a new instance of the CounterSample struct. More...
 

Public Attributes

readonly DateTime Timestamp
 Gets the timestamp of the counter sample. More...
 
readonly float Value
 Gets the calculated value of the counter. More...
 

Detailed Description

Represents the value of a counter calculated at a specific time.

Constructor & Destructor Documentation

ExitGames.Diagnostics.Counter.CounterSample.CounterSample ( float  value)
inline

Initializes a new instance of the CounterSample struct. The Timestamp property is set to DateTime.UtcNow.

Parameters
valueThe calculated value of the counter.
ExitGames.Diagnostics.Counter.CounterSample.CounterSample ( DateTime  timestamp,
float  value 
)
inline

Initializes a new instance of the CounterSample struct.

Parameters
timestampThe timestamp of the counter sample.
valueThe calculated value of the counter.

Member Data Documentation

readonly DateTime ExitGames.Diagnostics.Counter.CounterSample.Timestamp

Gets the timestamp of the counter sample.

readonly float ExitGames.Diagnostics.Counter.CounterSample.Value

Gets the calculated value of the counter.