Re: Nand2Tetris CPU Emulator Clock Frequency
Posted by WBahn on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Nand2Tetris-CPU-Emulator-Clock-Frequency-tp4034881p4034882.html
It just runs as fast as it can. How fast depends entirely on your computer and what else you are running.
You can figure it out by printing out the 'time' variable to the output file at the end of a simulation and then either manually timing how long the program runs or writing a batch file that captures the time before starting the emulator and again after the emulator exits. There's some start-up and wrap-up code that pollutes the data, but if the program itself runs for a long time that will get lost in the noise.