qint64 start,end; start = QDateTime::currentMSecsSinceEpoch(); //!do something end = QDateTime::currentMSecsSinceEpoch(); qDebug() << "用时(毫秒):" << end - start ;
Qt+记录耗时
最新推荐文章于 2024-07-10 14:04:30 发布
qint64 start,end; start = QDateTime::currentMSecsSinceEpoch(); //!do something end = QDateTime::currentMSecsSinceEpoch(); qDebug() << "用时(毫秒):" << end - start ;