So what precisely do the numbers mean then? Between turns is 130 seconds precisely, and python is eating up 444.445 seconds of CPU time. So how much of the between turn time is python then? It is obviously including some during turn functions in the equation. Unless that 444 is for the entire duration of the game, in which case it is TINY (under 1 second average per turn)
Is the 18778 seconds the time for you to do a single turn, or the time for the game to get up to this point using AutoPlay? 1 hour seems pretty hefty if it is just for the single turn, but really quick if playing manually to get to turn 584.
Maybe run it for a turn where you don't do anything? Just as soon as your turn starts, hit SHIFT+ENTER to see between turns only?
Anyway, very useful looking tool. Will be nice to know precisely what each function costs us so I can figure out which items need to be moved to the DLL and devise shortcut mechanics to avoid entering some of the larger functional loops. Is there a way to figure out precisely what function things like profile:0(<function real_onEvent at 0x17584F30>) would be?
130 is the time of the last turn in seconds and calculated with a time.clock(), it is strange tough that it is 130 precisely the presision is up to the microsecond
444 is the runtime of python for the whole game, so yes its tiny
18778 is the whole game duration in automatic play (ctrl+shift z)
If you look the log it look like this:
Code:
GAME TURN 1 TIME Thu Dec 18 02:23:51 2008 DIFF 79.528908 TOTAL 79.528908
GAME TURN 2 TIME Thu Dec 18 02:23:52 2008 DIFF 1.607620 TOTAL 81.136765
GAME TURN 3 TIME Thu Dec 18 02:23:55 2008 DIFF 2.225441 TOTAL 83.362450
GAME TURN 4 TIME Thu Dec 18 02:23:56 2008 DIFF 1.692116 TOTAL 85.054802
GAME TURN 5 TIME Thu Dec 18 02:28:42 2008 DIFF 286.118286 TOTAL 371.173340
GAME TURN 6 TIME Thu Dec 18 02:28:45 2008 DIFF 2.175842 TOTAL 373.349457
GAME TURN 7 TIME Thu Dec 18 02:28:47 2008 DIFF 2.288361 TOTAL 375.638031
GAME TURN 8 TIME Thu Dec 18 02:28:49 2008 DIFF 2.247742 TOTAL 377.886017
GAME TURN 9 TIME Thu Dec 18 02:28:52 2008 DIFF 2.499054 TOTAL 380.385376
GAME TURN 10 TIME Thu Dec 18 02:28:54 2008 DIFF 2.810822 TOTAL 383.196442
....
GAME TURN 574 TIME Thu Dec 18 07:11:44 2008 DIFF 161.183594 TOTAL 17352.818359
GAME TURN 575 TIME Thu Dec 18 07:14:28 2008 DIFF 163.789063 TOTAL 17516.607422
GAME TURN 576 TIME Thu Dec 18 07:17:06 2008 DIFF 158.265625 TOTAL 17674.873047
GAME TURN 577 TIME Thu Dec 18 07:19:44 2008 DIFF 157.667969 TOTAL 17832.541016
GAME TURN 579 TIME Thu Dec 18 07:24:26 2008 DIFF 145.748047 TOTAL 18115.402344
GAME TURN 580 TIME Thu Dec 18 07:26:38 2008 DIFF 131.570313 TOTAL 18246.974609
GAME TURN 581 TIME Thu Dec 18 07:28:45 2008 DIFF 126.603516 TOTAL 18373.578125
GAME TURN 582 TIME Thu Dec 18 07:30:58 2008 DIFF 132.898438 TOTAL 18506.476563
GAME TURN 583 TIME Thu Dec 18 07:33:19 2008 DIFF 141.937500 TOTAL 18648.414063
GAME TURN 584 TIME Thu Dec 18 07:35:29 2008 DIFF 130.000000 TOTAL 18778.414063
I attach a text file with all turn timing.
The first turn took long time because I didn't press the ctrl+shift z immediately.
The last turn took less time because interrupted by the crash.
I also interrupted it in turn 5 to check something hence the almost 5 min turn...