I need to take 10000 samples in 1 sec
Wow, why do you need that many samples. This sounds like a school project…