]> SALOME platform Git repositories - modules/superv.git/blobdiff - examples/GraphCpuUsed.py
Salome HOME
Fix for bug IPAL9818 : Dataflow nodes have "No status" statuses during dataflow execu...
[modules/superv.git] / examples / GraphCpuUsed.py
index 15906f188968d6bf1c5d56cb60d8e5a0a6c97e40..79b7dd21fff93f9607c2af46e3cfc9453d052ba6 100755 (executable)
@@ -2,6 +2,7 @@
 # Generated python file of Graph GraphCpuUsed
 
 from SuperV import *
+import time
 # Graph creation 
 GraphCpuUsed = Graph( 'GraphCpuUsed' )
 GraphCpuUsed.SetName( 'GraphCpuUsed' )
@@ -133,7 +134,15 @@ Subb = Sub.Input( 'b' , 1)
 CompareResult = Compare.Port( 'Result' )
 
 GraphCpuUsed.Run()
-GraphCpuUsed.DoneW()
+while GraphCpuUsed.IsDone() == 0 :
+    time.sleep(1)
+    print "sigma",sigma.CpuUsed(),"seconds"
+    print "Sigma",Sigma.CpuUsed(),"seconds"
+    print "Add",Add.CpuUsed(),"seconds"
+    print "Sub",Sub.CpuUsed(),"seconds"
+    print "Compare",Compare.CpuUsed(),"seconds"
+
+print GraphCpuUsed.State()
 GraphCpuUsed.PrintPorts()
 print "sigma",sigma.CpuUsed(),"seconds"
 print "Sigma",Sigma.CpuUsed(),"seconds"