Barotrauma Client Doc
Barotrauma.PerformanceCounter Class Reference

Classes

class  TickInfo
 

Public Member Functions

void AddElapsedTicks (string identifier, long ticks)
 
float GetAverageElapsedMillisecs (string identifier)
 
bool Update (double deltaTime)
 

Static Public Attributes

const int MaximumSamples = 10
 

Properties

double AverageFramesPerSecond [get]
 
double CurrentFramesPerSecond [get]
 
IReadOnlyList< string > GetSavedIdentifiers [get]
 

Detailed Description

Definition at line 7 of file PerformanceCounter.cs.

Member Function Documentation

◆ AddElapsedTicks()

void Barotrauma.PerformanceCounter.AddElapsedTicks ( string  identifier,
long  ticks 
)

Definition at line 45 of file PerformanceCounter.cs.

◆ GetAverageElapsedMillisecs()

float Barotrauma.PerformanceCounter.GetAverageElapsedMillisecs ( string  identifier)

Definition at line 60 of file PerformanceCounter.cs.

◆ Update()

bool Barotrauma.PerformanceCounter.Update ( double  deltaTime)

Definition at line 70 of file PerformanceCounter.cs.

Member Data Documentation

◆ MaximumSamples

const int Barotrauma.PerformanceCounter.MaximumSamples = 10
static

Definition at line 14 of file PerformanceCounter.cs.

Property Documentation

◆ AverageFramesPerSecond

double Barotrauma.PerformanceCounter.AverageFramesPerSecond
get

Definition at line 11 of file PerformanceCounter.cs.

◆ CurrentFramesPerSecond

double Barotrauma.PerformanceCounter.CurrentFramesPerSecond
get

Definition at line 12 of file PerformanceCounter.cs.

◆ GetSavedIdentifiers

IReadOnlyList<string> Barotrauma.PerformanceCounter.GetSavedIdentifiers
get

Definition at line 32 of file PerformanceCounter.cs.