Implement enqueue/dequeue timer in simulator.