tonnot
7th October 2010, 19:59
I have measure the Qtimer, basictimer precision with diferent intervales
( I use the simplest code :
basictimer.start(50, this);
void AnalogClock::timerEvent(QTimerEvent *event)
{
qDebug()<<QTime::currentTime().second()<<"."<<QTime::currentTime().msec();
}
For a 50 msecs I have :
0 . 0
0 . 62
0 . 125
0 . 187
0 . 250
0 . 312
0 . 375
0 . 437
0 . 500
0 . 562
For a 200 msecs I have :
30 . 78
30 . 281
30 . 484
30 . 687
30 . 890
31 . 93
31 . 296
31 . 500
31 . 703
31 . 906
32 . 109
I suposse my computer is 'normal'.
How can I improve my precision ?
( I use the simplest code :
basictimer.start(50, this);
void AnalogClock::timerEvent(QTimerEvent *event)
{
qDebug()<<QTime::currentTime().second()<<"."<<QTime::currentTime().msec();
}
For a 50 msecs I have :
0 . 0
0 . 62
0 . 125
0 . 187
0 . 250
0 . 312
0 . 375
0 . 437
0 . 500
0 . 562
For a 200 msecs I have :
30 . 78
30 . 281
30 . 484
30 . 687
30 . 890
31 . 93
31 . 296
31 . 500
31 . 703
31 . 906
32 . 109
I suposse my computer is 'normal'.
How can I improve my precision ?