def run(op_codes, count): cpu = ProfilingCPU(Interrupt(), iMemory()) start_time = time.time() for i in range(count): cpu.run(op_codes) end_time = time.time() return end_time - start_time
def get_video(): return Video(get_video_driver(), Interrupt(), Memory())