I’m not finding it in a quick search, but I believe I’ve read something by Mihaly Csikszentmihalyi about the time needed to get into a flow state after being interrupted.