Simple timing function for IO processes