From dfbbb48df28d7ce27997b2d2c8657f2d70875053 Mon Sep 17 00:00:00 2001 From: Felipe Nascimento de Moura Date: Wed, 9 Feb 2011 15:32:34 -0200 Subject: [PATCH] adjust of a few messages --- mind3rd/API/cortex/syntaxer/Syntaxer.php | 1 - mind3rd/API/programs/Analyze.php | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mind3rd/API/cortex/syntaxer/Syntaxer.php b/mind3rd/API/cortex/syntaxer/Syntaxer.php index 3c2258a..e702190 100644 --- a/mind3rd/API/cortex/syntaxer/Syntaxer.php +++ b/mind3rd/API/cortex/syntaxer/Syntaxer.php @@ -67,7 +67,6 @@ class Syntaxer { // let's analize it, now Analyst::analize($expression, $struct, $tokens); } - print_r(Analyst::getUniverse()); return $this; } } \ No newline at end of file diff --git a/mind3rd/API/programs/Analyze.php b/mind3rd/API/programs/Analyze.php index c0e813b..fd16457 100755 --- a/mind3rd/API/programs/Analyze.php +++ b/mind3rd/API/programs/Analyze.php @@ -55,7 +55,8 @@ EOT Mind::write('currentProjectRequiredTip'); return false; } - + + $startingTime= microtime(); Mind::$lexer= new Lexer(); $srcs= Mind::$currentProject['sources']; @@ -76,6 +77,13 @@ EOT if(!Mind::$syntaxer->sweep()) return false; + $endingTime= microtime(); + + // do NOT print it if you have MANY entities, the webbrowser freezes + //print_r(Analyst::getUniverse()); + echo "Time: ". + number_format(((float)$endingTime) - ((float)$startingTime), 4). + "s\n"; return $this; }