瀏覽代碼

Uncomment timing

Yentl Van Tendeloo 8 年之前
父節點
當前提交
62a8b77db8
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      wrappers/modelverse.py

+ 3 - 3
wrappers/modelverse.py

@@ -426,7 +426,7 @@ def transformation_add_MT(source_metamodels, target_metamodels, operation_name,
         compiled = _compile_model(code)
     except Exception as e:
         raise CompilationError(e)
-    print("Compilation took: %ss" % (time.time() - start))
+    #print("Compilation took: %ss" % (time.time() - start))
     start = time.time()
 
     mv_dict_rep = _dict_to_list(source_metamodels) + [""] + _dict_to_list(target_metamodels) + [""]
@@ -439,14 +439,14 @@ def transformation_add_MT(source_metamodels, target_metamodels, operation_name,
         callback()
         _input("exit")
         mode = MODE_MODELLING
-    print("Callbacks took: %ss" % (time.time() - start))
+    #print("Callbacks took: %ss" % (time.time() - start))
     start = time.time()
 
     # Done, so RAMify and upload the model
     _handle_output("Waiting for model constructors...")
     _input(compiled)
     _handle_output("Success")
-    print("Upload and RAMify took: %ss" % (time.time() - start))
+    #print("Upload and RAMify took: %ss" % (time.time() - start))
 
 def transformation_add_AL(source_metamodels, target_metamodels, operation_name, code, callback=lambda: None):
     """Create a new action language model, which can be executed."""