A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use property_readonly_static and update deprecation info
[simgrid.git]
/
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
6870b04
..
2b22bef
100644
(file)
--- 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)
# 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
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)
# 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
this_actor.info("Task2 duration: {:.2f}".format(task_time))
# Verify that the default pstate is set to 0