예제 #1
0
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
예제 #2
0
def get_video():
    return Video(get_video_driver(), Interrupt(), Memory())