Qtimer class in Qt
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
hi world. I am looking a function or attributes in class qtimer in qt that holds the time passed. can anyone say me is there any function or attributes that hold or return the time passed? thanks
-
hi world. I am looking a function or attributes in class qtimer in qt that holds the time passed. can anyone say me is there any function or attributes that hold or return the time passed? thanks
QElapsedTimer Class example :
QElapsedTimer timer;
timer.start();slowOperation1(); qDebug() << "The slow operation took" << timer.elapsed() << "milliseconds";
QElapsedTimer Class documentation : http://qt-project.org/doc/qt-5/qelapsedtimer.html[^]
-
QElapsedTimer Class example :
QElapsedTimer timer;
timer.start();slowOperation1(); qDebug() << "The slow operation took" << timer.elapsed() << "milliseconds";
QElapsedTimer Class documentation : http://qt-project.org/doc/qt-5/qelapsedtimer.html[^]