About cycle time qtr library

Hi,
when we use this code line;
unsigned int position = qtra.readLine(sensorValues);
what is the cycle time ?
How long is take to calculate the position data??

Hello.

The amount of time the function takes depends on many things including the number of sensors you are reading, the timeout value you specify for your sensors, and the reflectivity of the surfaces you are measuring. If you want more information about how long the function is taking in your setup, you might consider using the millis() or micros() Arduino functions to get timestamps before and after running the function to then calculate the length of time under various conditions. This blog post I found has an example code that shows how to do something like that.

-Nathan