Is there a way to create an awk input inactivity timer?
===

I have a text source (a log file), which gets new lines appended to it by some third party.

I can output the additions to my source file using `tail -f source`. I can then pipe that through an awk script `awk -f parser.awk` to parse and format the output.

My question is: while `tail -f source | awk -f parser.awk` is running, is there a way to call `function foo()` inside my `parser.awk` script every time there is more than 5 seconds elapsed without anything coming through the pipe into the standard input of the awk script?