inline timeFromFlow function