trap.c -> updating time % QUANTA base on ticks only