![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
碎片记录
学习永远不亏
如果不能逆风翻盘,那么至少向阳而生。
展开
-
Qt 自定义属性Q_PROPERTY不显示float类型
Q_PROPERTY可能支持很多种类型,但不一定能显示多种类型。原创 2022-10-24 16:09:20 · 261 阅读 · 1 评论 -
C++获取系统时间
C++打印程序使用时间段#include clock_t start = clock(); //获取当前系统时间clock_t end = clock();double programTimes = ((double) end -start) / CLOCKS_PER_SEC;QT获取系统时间#include #include QMutexLocker locker (&g_Lock);QDateTime time = QDateTime::currentDateT原创 2021-12-23 10:03:40 · 540 阅读 · 0 评论 -
测量函数的运行时间
#include <ctime> clock_t start = clock(); //获取当前系统时间 /*插入函数*/ clock_t end = clock(); double programTimes = ((double) end -start) / CLOCKS_PER_SEC; cout << programTimes << endl;原创 2021-05-06 10:51:12 · 167 阅读 · 0 评论