Skip to content
Snippets Groups Projects
Commit ad24e21c authored by Blinningjr's avatar Blinningjr
Browse files

Implemented simple response time

parent d7b02c2f
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,7 @@ fn main() {
println!("tr: {:?}", tr);
for t in &tasks {
block_time(t, &tasks, &ip, &tr);
interference_time(t, &tasks);
response_time(t, &tasks, &ip, &tr);
}
}
......@@ -126,12 +125,10 @@ fn wcet(trace: &Trace) -> u32 {
* - B(t) is the blocking time for task t, and
* - I(t) is the interference (preemptions) to task t
*/
fn response_time(task: &Task) -> u32 {
//let r: u32 = block_time(task) + wcet(task) + interference_time(task);
//println!("response_time {:?}", r);
//return r;
// TODO: Implement
return 0;
fn response_time(task: &Task, tasks: &Tasks, ip: &IdPrio, tr: &TaskResources) -> u32 {
let r: u32 = block_time(task, tasks, ip, tr) + wcet(&task.trace) + interference_time(task, tasks);
println!("response_time {:?}", r);
return r;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment