engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TPacketLossData< NbPeriodsForAverage > 模板结构体 参考

Calculates the current packet loss along with a rolling average of the past X updates Constructed with the number of samples you want to average over time. 更多...

#include <NetAnalyticsTypes.h>

Public 成员函数

float GetAvgLossPercentage () const
 The average loss percentage over the previous X StatPeriods
 
float GetLossPercentage () const
 The loss percentage over the last StatPeriod
 
void UpdateLoss (int32 NbPacketsLost, int32 TotalPackets, int32 SampleCount)
 Update the packet loss based on total and lost packets
 

详细描述

template<uint32 NbPeriodsForAverage>
struct TPacketLossData< NbPeriodsForAverage >

Calculates the current packet loss along with a rolling average of the past X updates Constructed with the number of samples you want to average over time.


该结构体的文档由以下文件生成: