diff options
Diffstat (limited to '')
-rw-r--r-- | src/love/love.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/love/love.c b/src/love/love.c index b9769a1..e18afe7 100644 --- a/src/love/love.c +++ b/src/love/love.c | |||
@@ -267,7 +267,20 @@ static Eina_Bool _dataLuaSL(void *data, int type, Ecore_Con_Event_Server_Data *e | |||
267 | me->bugs++; | 267 | me->bugs++; |
268 | } | 268 | } |
269 | else if (0 == strcmp(command, "compiled(false)")) | 269 | else if (0 == strcmp(command, "compiled(false)")) |
270 | { | ||
270 | PE("The compile of %s failed!", SID); | 271 | PE("The compile of %s failed!", SID); |
272 | if (me) | ||
273 | { | ||
274 | struct timeval now; | ||
275 | |||
276 | me->compileTime = timeDiff(&now, &me->startTime); | ||
277 | compiledCount++; | ||
278 | compileTime += me->compileTime; | ||
279 | //// PD("Average compile speed is %f scripts per second", compiledCount / compileTime); | ||
280 | if (compiledCount == scriptCount) | ||
281 | PD("TOTAL compile speed is %f scripts per second", compiledCount / timeDiff(&now, &startTime)); | ||
282 | } | ||
283 | } | ||
271 | else if (0 == strcmp(command, "compiled(true)")) | 284 | else if (0 == strcmp(command, "compiled(true)")) |
272 | { | 285 | { |
273 | if (me) | 286 | if (me) |