continuing day13, refactor timer fifo, calculate performance