time_file and time_dir return a data frame with the results