Photon Server API
Static Public Member Functions | List of all members
Photon.SocketServer.Diagnostics.PhotonCounter Class Reference

The photon counter. More...

Static Public Member Functions

static long GetElapsedMilliseconds (long timestamp)
 Gets the elapseds time in milliseconds since the operation request has been created. More...
 
static long GetTimestamp ()
 Gets the current number of ticks in the timer mechanism. More...
 
static void OnOperationCompleted (long getValueOrDefault)
 

Detailed Description

The photon counter.

Member Function Documentation

static long Photon.SocketServer.Diagnostics.PhotonCounter.GetElapsedMilliseconds ( long  timestamp)
inlinestatic

Gets the elapseds time in milliseconds since the operation request has been created.

Parameters
timestampA return value of GetTimestamp.
Returns
The elapseds time in milliseconds.
static long Photon.SocketServer.Diagnostics.PhotonCounter.GetTimestamp ( )
inlinestatic

Gets the current number of ticks in the timer mechanism.

Returns
A long integer representing the tick counter value of the underlying timer mechanism.
static void Photon.SocketServer.Diagnostics.PhotonCounter.OnOperationCompleted ( long  getValueOrDefault)
inlinestatic