public unsafe ulong GetStatsLastSecond(RNSPerSecondMetrics metrics) { unsafe { return(valueOverLastSecond[(int)metrics]); } }
public ulong GetStatsTotal(RNSPerSecondMetrics metrics) { unsafe { return(runningTotal[(int)metrics]); } }
public ulong GetStatisticsTotal(uint index, RNSPerSecondMetrics metrics) { if (pointer == IntPtr.Zero) { return(0); } return(RakPeer_Native.NET_GetStatisticsTotal(pointer, index, metrics)); }
public unsafe ulong GetNetStat(RNSPerSecondMetrics metrics) { if (ptr != IntPtr.Zero) { RakNetStats stats = GetNetStats(); ulong value = stats.runningTotal[(int)metrics]; return(value); } return(0); }
public unsafe ulong GetNetStatLastSecond(RNSPerSecondMetrics metrics) { if (ptr != IntPtr.Zero) { RakNetStats stats = GetNetStats(); ulong value = stats.valueOverLastSecond[(int)metrics]; return(value); } return(0); }
public ulong GetNetStatLastSecond(RNSPerSecondMetrics metrics) { return(client_peer != null?client_peer.GetNetStatLastSecond(metrics) : 0); }
/// <summary> /// Get statistics total /// </summary> public ulong GetStatisticsTotal(RNSPerSecondMetrics metrics) { return(peer.GetStatisticsTotal(0, metrics)); }
/// <summary> /// Get statistics per second /// </summary> public ulong GetStatisticsLastSecond(RNSPerSecondMetrics metrics) { return(peer.GetStatisticsLastSecond(0, metrics)); }
/// <summary> /// Get statistics total on index /// </summary> public ulong GetStatisticsTotal(uint index, RNSPerSecondMetrics metrics) { return(peer.GetStatisticsTotal(index, metrics)); }
public static extern ulong NET_GetStatisticsTotal(IntPtr instance_ptr, uint index, RNSPerSecondMetrics metrics);