4 * Copyright 2006,2007 Martin Quinson, Malek Cherier
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package.
13 public class Receiver extends simgrid.msg.Process {
15 final double commSizeLat = 1;
16 final double commSizeBw = 100000000;
18 public void main(String[] args) throws JniException, NativeException {
21 double communicationTime=0;
23 double time = Msg.getClock();
25 Msg.info("try to get a task");
27 PingPongTask task = (PingPongTask)Task.get(0);
28 double timeGot = Msg.getClock();
29 double timeSent = task.getTime();
31 Msg.info("Got at time "+ timeGot);
32 Msg.info("Was sent at time "+timeSent);
35 communicationTime=timeGot - time;
36 Msg.info("Communication time : " + communicationTime);
38 Msg.info(" --- bw "+ commSizeBw/communicationTime + " ----");