How I get 100 hz frequency in arduino mega 2560

because, I want 100 sample so I am using this loop. Is this not correct way? If no so please tell me correct way.