elapsed time for preprocessing