
C/C++
haoyuewuwei
这个作者很懒,什么都没留下…
展开
-
C获取系统时间的方法(linux下)
Reference: http://net.pku.edu.cn/~yhf/linux_c/function/04.html asctime(将时间和日期以字符串格式表示) 相关函数 time,ctime,gmtime,localtime 表头文件 #include 定义函数 char * asctime(const struct tm * timeptr); 函数说明转载 2009-08-18 22:41:00 · 10693 阅读 · 0 评论 -
C++中函数执行效率研究
先fuck一下!刚才写到一半的文章居然没有掉了……心碎啊!!!好了,言归正传。先附上C++中验证两个函数执行效率的方法:(指令周期级)#include using namespace std;class PerCounter{ unsigned int _dwLow, _dwHigh; public: void startCount(){ _a原创 2009-08-19 10:55:00 · 862 阅读 · 0 评论