How to make Faster Time Sampling for Arduino until 1 MHz?

Ultrasonic thickness testers use frequencies in the MHz range, and use a fair bit of analog signal processing, which reduces the load on a processor considerably.

Allan