X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f708463bf8fef2767d5e918e41fd4a6359c1f325..d8560be1b1e110ce2ac939c46241d09776338690:/examples/python/exec-dvfs/exec-dvfs.py diff --git a/examples/python/exec-dvfs/exec-dvfs.py b/examples/python/exec-dvfs/exec-dvfs.py index 6870b04feb..2b22bef6a4 100644 --- a/examples/python/exec-dvfs/exec-dvfs.py +++ b/examples/python/exec-dvfs/exec-dvfs.py @@ -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