Photon Server API Documentation v5.0RC1

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

◆ CounterSample() [1/2]

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.

◆ CounterSample() [2/2]

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

◆ Timestamp

readonly DateTime ExitGames.Diagnostics.Counter.CounterSample.Timestamp

Gets the timestamp of the counter sample.

◆ Value

readonly float ExitGames.Diagnostics.Counter.CounterSample.Value

Gets the calculated value of the counter.