How to execute a function for "t" time without delay + using external interrupt

@dhenry:
uhm... Can you explain your code???
Thank you very much!