- Timestamp:
- 04/11/12 16:30:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xssim/branches/tpiontek/src/example/timeestimation/ExecTimeEstimationPlugin.java
r184 r241 10 10 import schedframe.scheduling.plugin.SchedulingPluginConfiguration; 11 11 import schedframe.scheduling.utils.ResourceParameterName; 12 import test.rewolucja.energy.profile.PState; 13 import test.rewolucja.energy.profile.PStateType; 12 14 import test.rewolucja.resources.ProcessingElements; 15 import test.rewolucja.resources.physical.implementation.Processor; 13 16 14 17 … … 38 41 // obtain single pe speed 39 42 int speed = pes.getSpeed(); 40 43 41 44 // number of used pe 42 45 int cnt = pes.getUsedAmount(); … … 44 47 double remainingLength = task.getLength() * (1- completionPercentage); 45 48 // do the calculation 46 double execTime = (remainingLength / (cnt * speed ));49 double execTime = (remainingLength / (cnt * speed/1000)); 47 50 48 51 // if the result is very close to 0, but less then one millisecond then round this result to 0.001
Note: See TracChangeset
for help on using the changeset viewer.