Animating the outflow

Hi, i’m working on fluid simulation in blender. I need outflow to happen after a time lapse continuously. The fluid shoud drain, stop draining, drain again and so on. How do i do this?

I made this tutorial for 2.4x but may be able to adapt for later versions:

Just animate it in and out of the domain when you need it to drain.