35 lines
779 B
C#
35 lines
779 B
C#
using System;
|
|
|
|
namespace CZGL.SystemInfo
|
|
{
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public struct Rate
|
|
{
|
|
public Rate(DateTime startTime, long receivedLength, long sendLength)
|
|
{
|
|
StartTime = startTime;
|
|
ReceivedLength = receivedLength;
|
|
SendLength = sendLength;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 记录时间
|
|
/// </summary>
|
|
public DateTime StartTime { get; private set; }
|
|
|
|
/// <summary>
|
|
/// 此网卡总接收网络流量字节数
|
|
/// </summary>
|
|
public long ReceivedLength { get; private set; }
|
|
|
|
/// <summary>
|
|
/// 此网卡总发送网络流量字节数
|
|
/// </summary>
|
|
public long SendLength { get; private set; }
|
|
}
|
|
|
|
}
|