Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_StatsPanel_Latency.c
Go to the documentation of this file.
1
class
SCR_StatsPanel_Latency
:
SCR_StatsPanelBase
2
{
3
//------------------------------------------------------------------------------------------------
4
override
protected
float
GetValue
()
5
{
6
RplConnectionStats
stats =
Replication
.GetConnectionStats(
m_RplIdentity
);
7
8
float
value = stats.GetRoundTripTimeInMs();
9
10
#ifdef DEBUG_STATS_PANELS
11
if
(value == 0)
12
value =
Math
.RandomFloat(0.01,0.1);
13
14
value = value * 1000;
15
#endif
16
17
//PrintFormat("TripTime: %1", value);
18
19
return
value;
20
}
21
}
Math
Definition
Math.c:13
Replication
Main replication API.
Definition
Replication.c:14
RplConnectionStats
Definition
RplConnectionStats.c:13
SCR_StatsPanel_Latency
Definition
SCR_StatsPanel_Latency.c:2
SCR_StatsPanel_Latency::GetValue
float GetValue()
Definition
SCR_StatsPanel_Latency.c:4
SCR_StatsPanelBase
Definition
SCR_StatsPanelBase.c:19
SCR_StatsPanelBase::m_RplIdentity
RplIdentity m_RplIdentity
Definition
SCR_StatsPanelBase.c:56
scripts
Game
UI
HUD
StatsPanel
SCR_StatsPanel_Latency.c
Generated by
1.17.0