[Interest] QTimer at 30Hz interval?

Daniel Engelke daniel.engelke at basyskom.com
Wed Apr 4 09:52:57 CEST 2018

What about QElapsedTimer you can get nanoseconds out of it.

Br Daniel

 From:   René Reucher <rene.reucher at batcom-it.net> 
 To:   <interest at qt-project.org> 
 Sent:   4/4/2018 9:42 AM 
 Subject:   Re: [Interest] QTimer at 30Hz interval? 

On 04/04/18 09:33, Ola Røer Thorsen wrote:
> is there some nice trick to make a QTimer trigger at 30 Hz? This 
> interval can't be expressed properly in milliseconds (1000/30 = 
> 33.333333...)
> My use case is for Linux only so I'd be happy with some Linux-specific 
> way of triggering a signal at 30 Hz too. It won't have to be very 
> precise for each trigger as long as the average frequency is 30 Hz.
Not sure (and I haven't tried it myself), but maybe this class can help:

HTH, René
Interest mailing list
Interest at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180404/671d6786/attachment.html>

More information about the Interest mailing list