Misurare tempo di volo VL53L0X

Buongiorno

se leggi la scheda tecnica vedrai che l'API del sensore restituisce direttamente una distanza

https://www.st.com/resource/en/user_manual/um2039-world-smallest-timeofflight-range-and-gesture-detection-sensor-application-programming-interface-stmicroelectronics.pdf#page15

Get measurement
VL53L0X_GetRangingMeasurementData() function returns the ranging data.
The function returns a buffer which contains the following:
RangeMilliMeter
RangeDMaxMilliMeter
SignalRateRtnMegaCps
AmbientRateRtnMegaCps
EffectiveSpadRtnCount
RangeStatus