new approach to compute the mode along elapsed_time