aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_main.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-22 10:30:22 +1000
committerDavid Walter Seikel2012-01-22 10:30:22 +1000
commitd0de55e3d53ba7c97e513dc95a06846ccef802c2 (patch)
treefe51d95a625912e2b3b7ad4dd6aee38d67ff9427 /LuaSL/src/LuaSL_main.c
parentOops, left overs. (diff)
downloadSledjHamr-d0de55e3d53ba7c97e513dc95a06846ccef802c2.zip
SledjHamr-d0de55e3d53ba7c97e513dc95a06846ccef802c2.tar.gz
SledjHamr-d0de55e3d53ba7c97e513dc95a06846ccef802c2.tar.bz2
SledjHamr-d0de55e3d53ba7c97e513dc95a06846ccef802c2.tar.xz
Found a use for that after all. lol
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c
index fef67c6..dfa7f91 100644
--- a/LuaSL/src/LuaSL_main.c
+++ b/LuaSL/src/LuaSL_main.c
@@ -116,6 +116,7 @@ main(int argc, char **argv)
116 unsigned int i; 116 unsigned int i;
117 struct timeval lastTime2; 117 struct timeval lastTime2;
118 struct timeval thisTime2; 118 struct timeval thisTime2;
119 float diff;
119 120
120 /* this will give you a window with an Evas canvas under the first engine available */ 121 /* this will give you a window with an Evas canvas under the first engine available */
121 game.ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 122 game.ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
@@ -189,7 +190,8 @@ main(int argc, char **argv)
189 compilerSetup(&game); 190 compilerSetup(&game);
190 snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR); 191 snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR);
191 eina_file_dir_list(buf, EINA_TRUE, dirList_cb, &game); 192 eina_file_dir_list(buf, EINA_TRUE, dirList_cb, &game);
192 printf("Compiling %d scripts took %f seconds.\n", scriptCount, timeDiff(&thisTime2, &lastTime2)); 193 diff = timeDiff(&thisTime2, &lastTime2);
194 printf("Compiling %d scripts took %f seconds, that's %f scripts per second. B-).\n", scriptCount, diff, scriptCount / diff);
193 195
194// ecore_main_loop_begin(); 196// ecore_main_loop_begin();
195 197