Add timer for calculate timestamp