Skip to content
Snippets Groups Projects
pocket_pyboy.py 303 B
Newer Older
  • Learn to ignore specific revisions
  • from time import time
    from pyboy import PyBoy
    
    with PyBoy("../../res/roms/demo/pocket.gb", disable_renderer=True) as pyboy:
        pyboy.set_emulation_speed(0)
        print(pyboy.cartridge_title())
        start = time()
        for _ in range(6000):
            pyboy.tick()
        print(f"Time taken: {(time() - start)}")