measure time of PreProcess