Ignore:
Timestamp:
04/11/12 16:30:38 (13 years ago)
Author:
piontek
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • xssim/branches/tpiontek/src/example/timeestimation/ExecTimeEstimationPlugin.java

    r184 r241  
    1010import schedframe.scheduling.plugin.SchedulingPluginConfiguration; 
    1111import schedframe.scheduling.utils.ResourceParameterName; 
     12import test.rewolucja.energy.profile.PState; 
     13import test.rewolucja.energy.profile.PStateType; 
    1214import test.rewolucja.resources.ProcessingElements; 
     15import test.rewolucja.resources.physical.implementation.Processor; 
    1316 
    1417 
     
    3841                // obtain single pe speed 
    3942                int speed = pes.getSpeed(); 
    40  
     43                 
    4144                // number of used pe   
    4245                int cnt = pes.getUsedAmount(); 
     
    4447                double remainingLength =  task.getLength() * (1- completionPercentage); 
    4548                // do the calculation 
    46                 double execTime = (remainingLength / (cnt * speed)); 
     49                double execTime = (remainingLength / (cnt * speed/1000)); 
    4750 
    4851                // 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.