初始化上传
This commit is contained in:
34
常用工具集/Utility/CZGL.SystemInfo/Network/Rate.cs
Normal file
34
常用工具集/Utility/CZGL.SystemInfo/Network/Rate.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user