How I get 100 hz frequency in arduino mega 2560

First of all, make sure that your sensor can actually be polled at that frequency. For a lot of sensor, the maximum polling frequency is much lower.