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:

qt::precisetimer: 1 ms resolution on windows qt::coarsetimer (default): 15 ms resolution on windows qt::verycoarsetimer: 1000 ms resolution on platforms

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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -