Set time in ticks