improve code for cpu & apu & ppu execution timing.