[pypy-svn] r63076 - pypy/trunk/pypy/lang/gameboy/profiling

cami at codespeak.net cami at codespeak.net
Thu Mar 19 15:45:15 CET 2009


Author: cami
Date: Thu Mar 19 15:45:14 2009
New Revision: 63076

Modified:
   pypy/trunk/pypy/lang/gameboy/profiling/gameboy_profiling_implementation.py
Log:
added execution time as target option


Modified: pypy/trunk/pypy/lang/gameboy/profiling/gameboy_profiling_implementation.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/profiling/gameboy_profiling_implementation.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/profiling/gameboy_profiling_implementation.py	Thu Mar 19 15:45:14 2009
@@ -27,10 +27,10 @@
         self.video_driver  = VideoDriver()
         self.sound_driver  = SoundDriver()
     
-    def mainLoop(self):
+    def mainLoop(self, execution_seconds):
         self.reset()
         self.is_running = True
-        for i in range(600 * FPS):
+        for i in range(execution_seconds * FPS):
             self.emulate_cycle()
     
     def emulate_cycle(self):



More information about the Pypy-commit mailing list