(RARCH_CONSOLE) Refactor timer code