c++ - in Qt 4.8 how to set "Qt::PreciseTimer" -
c++ - in Qt 4.8 how to set "Qt::PreciseTimer" -
as title says: have snippet:
qtimer timerdata;
i can start timer calling timerdata.start(5);
however, not getting 5 msec...i know in qt 5.x there 3 levels of precision timers:
my question is there similar in qt 4.8 , if true, how set it?
qt4 not provide high-precision timers. if want high-precision timers, need either migrate qt5 or utilize library.
for example, seek this: http://www.boost.org/doc/libs/1_56_0/doc/html/boost_asio/reference/high_resolution_timer.html
c++ qt qt4.8
Comments
Post a Comment