Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
Photon.SocketServer.Diagnostics.TimeIntervalCounterLite Class Reference

Simplified version of TimeIntervalCounter for case steps == 1 access to all public methods should be synchronized for thread safety. This is not the case for TimeIntervalCounter More...

Public Member Functions

 TimeIntervalCounterLite (TimeSpan timeSpan)
 
int Increment (int value)
 Increments counter More...
 
void Reset ()
 

Properties

int Value [get]
 

Detailed Description

Simplified version of TimeIntervalCounter for case steps == 1 access to all public methods should be synchronized for thread safety. This is not the case for TimeIntervalCounter

Constructor & Destructor Documentation

◆ TimeIntervalCounterLite()

Photon.SocketServer.Diagnostics.TimeIntervalCounterLite.TimeIntervalCounterLite ( TimeSpan  timeSpan)
inline

Member Function Documentation

◆ Increment()

int Photon.SocketServer.Diagnostics.TimeIntervalCounterLite.Increment ( int  value)
inline

Increments counter

Parameters
valuevalue for increment
Returns
Value of counter after increment

◆ Reset()

void Photon.SocketServer.Diagnostics.TimeIntervalCounterLite.Reset ( )
inline

Property Documentation

◆ Value

int Photon.SocketServer.Diagnostics.TimeIntervalCounterLite.Value
get