QCustomPlot Discussion and Comments

QCustomPlot delay issueReturn to overview

Hello,

I created a program regarding to tutorials. It draws data according to time. But there is a time delay up to 3-4 seconds. Is it normal?

the time the tutorial uses as the start point for the data is currentDateTime when it crosses line 4.

any delay you have drawing the plot will cause this time to be behind what your 'current time' is when the plot is finished drawing. I cant imagine it taking multiple seconds though. you could easily get 1 second because time_t is only in seconds, so if it happened to be one millisecond before hitting the next second, then it would be a second behind as soon as that 1ms passes.