netflowrecoder.h
来自「wisock应用队列思想实现单线程多任务http下载的类. 实现多文件同时下载」· C头文件 代码 · 共 27 行
H
27 行
#pragma once
#include <windows.h>
class CNetFlowRecoder
{
public:
static CNetFlowRecoder* GetInstance();
void RefreshFlow(UINT increase);
void AddTotalFlow(UINT increase);//
void RefreshSpeed();
UINT GetCompletedFlow();
UINT GetCurSpeed();
float GetCurPersentage();
bool IsCompleted();
bool m_isBegin;
//private:
int m_iFlowRecoder;
int m_iTotalFlow;//所有任务的下载总和
int m_iNetRate;//下载速率
float m_iPersentage;//完成的百分比
CNetFlowRecoder(void);
~CNetFlowRecoder(void);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?