aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_main.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-23 22:20:50 +1000
committerDavid Walter Seikel2012-01-23 22:20:50 +1000
commitb88a98ebd2ce08ded95ace1a70916c1fe866e72c (patch)
treee7db5116f40cd0d9c919ec0a032efd2ddceb8471 /LuaSL/src/LuaSL_main.c
parentExercise the lua compiler to, and produce an estimate of compile time. Also ... (diff)
downloadSledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.zip
SledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.tar.gz
SledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.tar.bz2
SledjHamr-b88a98ebd2ce08ded95ace1a70916c1fe866e72c.tar.xz
Tweaked the output a little.
Diffstat (limited to 'LuaSL/src/LuaSL_main.c')
-rw-r--r--LuaSL/src/LuaSL_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c
index 47e4881..4bd3bc5 100644
--- a/LuaSL/src/LuaSL_main.c
+++ b/LuaSL/src/LuaSL_main.c
@@ -212,7 +212,7 @@ main(int argc, char **argv)
212 snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR); 212 snprintf(buf, sizeof(buf), "%s/Test sim/objects", PACKAGE_DATA_DIR);
213 eina_file_dir_list(buf, EINA_TRUE, dirList_cb, &game); 213 eina_file_dir_list(buf, EINA_TRUE, dirList_cb, &game);
214 diff = timeDiff(&thisTime2, &lastTime2); 214 diff = timeDiff(&thisTime2, &lastTime2);
215 printf("Compiling %d scripts took %f seconds, that's %f scripts per second.\n", scriptCount, diff, scriptCount / diff); 215 printf("Compiling %d LSL scripts took %f seconds, that's %f scripts per second.\n", scriptCount, diff, scriptCount / diff);
216 216
217 lslCount = scriptCount; 217 lslCount = scriptCount;
218 diff0 = diff; 218 diff0 = diff;
@@ -221,7 +221,7 @@ main(int argc, char **argv)
221 snprintf(buf, sizeof(buf), "%s/testLua", PACKAGE_DATA_DIR); 221 snprintf(buf, sizeof(buf), "%s/testLua", PACKAGE_DATA_DIR);
222 eina_file_dir_list(buf, EINA_TRUE, dirListLua_cb, &game); 222 eina_file_dir_list(buf, EINA_TRUE, dirListLua_cb, &game);
223 diff = timeDiff(&thisTime2, &lastTime2); 223 diff = timeDiff(&thisTime2, &lastTime2);
224 printf("Compiling %d Lua scripts took %f seconds, that's %f scripts per second. B-).\n", scriptCount, diff, scriptCount / diff); 224 printf("Compiling %d Lua scripts took %f seconds, that's %f scripts per second.\n\n", scriptCount, diff, scriptCount / diff);
225 225
226 printf("Combined estimate of compiling speed is %f scripts per second.\n", 1 / ((diff0 / lslCount) + (diff / scriptCount))); 226 printf("Combined estimate of compiling speed is %f scripts per second.\n", 1 / ((diff0 / lslCount) + (diff / scriptCount)));
227 227