QElapsedTimer timer;
timer.start();
slowOperation1();
qDebug() << "The slow operation took" << timer.elapsed() << "milliseconds";
Run Code Online (Sandbox Code Playgroud)
http://doc.qt.io/qt-5/qelapsedtimer.html#invalidate
之后qDebug()我想停止这个计时器.我在那里看不到停止功能,也没有单击属性.
出路是什么?