2023年1月5日
摘要: linux下C++获取系统CPU情况和网络使用情况 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #define MAXBUFSIZE 1024 #define WAIT_SECOND 3 阅读全文
posted @ 2023-01-05 17:03 弘道者 阅读(831) 评论(0) 推荐(0)
摘要: Linux下用C语言获取IO信息 只获取iostat的CPU信息 代码如下 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include <errn 阅读全文
posted @ 2023-01-05 16:46 弘道者 阅读(69) 评论(0) 推荐(0)