Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 C++ 可执行文件,它使用 cURL 向外部服务器发出 HTTP(s) 请求。有什么好方法可以让我确定每秒发送的请求数吗?任何方式或工具都会有所帮助。
每次应用程序发出请求时增加一个计数器。有一个单独的计时器,每秒检查和重置计数器。根据需要平均一段时间内的值。