Faster than a millisecond
sharkattack28 last edited by
How can have a loop faster than a millisecond? I need to read serial data that arrives every 1 millisec.. i want to loop faster than that so i can check the buffer for data. readyRead(), does not work fast enough and i get messages combined. if anyone has an idea let me know.
code_fodder last edited by
The usual practice is to service the readyRead() and split the data up as required. Can you not do this for some reason?
Running a timer faster the 1 ms is going to be problematic on a non-real time system (i.e. a windows PC). There is a way (I think) to access a high definition timer, but I would split the data manually and use readyRead().
You can still process each "block" one after the other if ordering is an issue. What is your use-case?