X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmathql_test%2Fmqitop.ml;h=4d45740cf2a7c68acb80324b769e12d4c9f14f14;hb=381006cf8b418cfdeaf145ab7df9e8f2b19ae2e6;hp=aca13b9cb5cf0522bd086fb45db8fcfd34f81d93;hpb=efdc3184ccd0738fe48aa0056fc444fba23329e8;p=helm.git diff --git a/helm/mathql_test/mqitop.ml b/helm/mathql_test/mqitop.ml index aca13b9cb..4d45740cf 100644 --- a/helm/mathql_test/mqitop.ml +++ b/helm/mathql_test/mqitop.ml @@ -26,13 +26,17 @@ (* AUTOR: Ferruccio Guidi *) -module U = MQueryUtil +let _ = MQueryStandard.init +let _ = MQueryHELM.init + +module P = MQueryUtil +module U = AvsUtil module I = MQueryInterpreter module C = MQIConn module F = MQueryIO let _ = - let t = U.start_time () in + let t = P.start_time () in let ich = Lexing.from_channel stdin in let flags = if Array.length Sys.argv >= 2 then Sys.argv.(1) else "" in let log s = print_string s; flush stdout in @@ -41,13 +45,13 @@ let _ = print_endline "mqitop: no connection"; flush stdout end; let rec aux () = - let t = U.start_time () in + let t = P.start_time () in let r = I.execute handle (F.query_of_text ich) in (* F.text_of_result log r "\n"; -*) Printf.eprintf "mqitop: query: %s,%i\n" (U.stop_time t) (List.length r); +*) Printf.eprintf "mqitop: query: %s,%i\n" (P.stop_time t) (U.count r); flush stderr; aux() in begin try aux() with End_of_file -> () end; C.close handle; - Printf.eprintf "mqitop: done: %s\n" (U.stop_time t) + Printf.eprintf "mqitop: done: %s\n" (P.stop_time t)