Added get_thread_by_time