Use of an effect mid-track

I am using a delay effect but I only want it to ‘work’ on certain measures in a track, not on every note all the time. How do I do this ? :unamused:

With Automation for example.