gaining accurate time on time sensitive measurements.

What is the message printed?

small code tip

long sensorQ = Vin * analogRead(0)* 500000;
==>
long sensorQ = Vin * analogRead(0)* 500000L;  // add L to indicate 32 bit long  -- use UL for Unsigned Long