Initialize spent_time