Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use property_readonly_static and update deprecation info
[simgrid.git] / examples / python / exec-dvfs / exec-dvfs.py
index 6870b04..2b22bef 100644 (file)
@@ -20,7 +20,7 @@ class Dvfs:
         # Run a task
         this_actor.execute(workload)
 
-        task_time = Engine.clock()
+        task_time = Engine.clock
         this_actor.info("Task1 duration: {:.2f}".format(task_time))
 
         # Change power peak
@@ -35,7 +35,7 @@ class Dvfs:
         # Run a second task
         this_actor.execute(workload)
 
-        task_time = Engine.clock() - task_time
+        task_time = Engine.clock - task_time
         this_actor.info("Task2 duration: {:.2f}".format(task_time))
 
         # Verify that the default pstate is set to 0