measure interrupt frequency