Frequency measure with interrupts

Hi

I like to measure the frequency of an oscilator with an arduino mega 2560.
For bascom there are a lot of tutorials and solutions available.

Do you have an interrupt solution in arduino C for my.

Thanks

Peter

http://interface.khm.de/index.php/lab/experiments/frequency-measurement-library/

What frequency range? Analog or digital waveform? For direct measurement of digital signal you could consider using a counter/timer directly (you have to use certain pins though that are hardwired to the various Mega timers)

The frequency range is between 10 ans 300 kHz. An oscilator (LM311) build the digital waveform.
Do you have some codesnipps for timer1?
Thanks
Peter