1 /* Copyright (c) 2016-2020. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
8 import org.simgrid.msg.*;
9 import org.simgrid.msg.Process;
12 public class LoadRunner extends Process {
14 public LoadRunner(Host host, String s) {
18 public void display(){
19 Msg.info("Speed="+getHost().getSpeed()+" flop/s");
20 Msg.info("Computed Flops "+ getHost().getComputedFlops());
21 Msg.info("AvgLoad "+ getHost().getAvgLoad());
24 public void main(String[] strings) throws MsgException {
26 Msg.info("Sleep for 10 seconds");
31 Task task1 = new Task("t1", 200E6, 0);
34 double taskTime = Msg.getClock();
35 Msg.info("Task1 simulation time: "+ taskTime);
38 new Task("t1", 200E6, 0).execute();
40 taskTime = Msg.getClock() - taskTime;
41 Msg.info("Task2 simulation time: "+ taskTime);