X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2FDEVEL%2Fmathml_editor%2Ftest%2Feditor.cc;h=cfb0ade29df133ece954dca328a30131a247e2e8;hb=b38de2d3fa8bbe346c59c18bbeb889f29e493f63;hp=398d3133da5fcf7f458b4d8596a9825991ec4b17;hpb=0a1ca8742c3fda97ba067282b608981850e27764;p=helm.git diff --git a/helm/DEVEL/mathml_editor/test/editor.cc b/helm/DEVEL/mathml_editor/test/editor.cc index 398d3133d..cfb0ade29 100644 --- a/helm/DEVEL/mathml_editor/test/editor.cc +++ b/helm/DEVEL/mathml_editor/test/editor.cc @@ -23,8 +23,11 @@ * or send an email to */ +#include + #include "dom.hh" #include "TPushParser.hh" +#include "timer.hh" #include "ILPushLexer.hh" #include "TDictionary.hh" @@ -67,7 +70,7 @@ edit_output_tex(Context* data) DOM::Node c = res.get_firstChild(); if (c) std::cout << "HEY, there is a child! " << c.get_nodeName() << " " << c.get_nodeValue() << std::endl; #endif - data->texStyle.save(res, stdout); + //data->texStyle.save(res, stdout); } extern "C" int @@ -84,10 +87,13 @@ extern "C" void edit_push_char(Context* context, gchar ch) { assert(context != NULL); + long t0 = getTimer(); GUI_freeze(); std::cout << "*** SENDING " << ch << std::endl; context->lexer.push(ch); GUI_thaw(); + long t1 = getTimer(); + std::cout << "=== OVERALL TIME = " << (t1 - t0) / 1000 << std::endl; } #include @@ -152,7 +158,7 @@ main(int argc, char* argv[]) TDictionary dictionary(logger); logger.info("loading the dictionary..."); - dictionary.load("./dictionary-test.xml"); + dictionary.load("./dict/dictionary-tex.xml"); logger.info("loading the stylesheet..."); DOM::DOMImplementation di;