예제 #1
0
 public void PrintStatsDiff(ref DeviceStats other, ulong nanos)
 {
     Console.WriteLine("{0} RX: {1} Mbit/s {2} Mpps",
                       this.Device?.PciAddress,
                       DiffMbit(this.RxBytes, other.RxBytes, this.RxPackets, other.RxPackets, nanos),
                       DiffMpps(this.RxPackets, other.RxPackets, nanos)
                       );
     Console.WriteLine("{0} TX: {1} Mbit/s {2} Mpps",
                       this.Device?.PciAddress,
                       DiffMbit(this.TxBytes, other.TxBytes, this.TxPackets, other.TxPackets, nanos),
                       DiffMpps(this.TxPackets, other.TxPackets, nanos)
                       );
 }
예제 #2
0
파일: IxyDevice.cs 프로젝트: ocoanet/ixy.cs
 public abstract void ReadStats(ref DeviceStats stats);