how to increase the sample rate(Use arduino as DAQ)

jjspierx:
Set your bad rate to 115200, and remove the delay command. That will run the loop as fast as it can and output to serial at the highest data rate supported.

if i remove the delay, then how do i know what is the sample rate?
do i need using timers?