X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e6b22bbbde4130f0b21491404f2af0f57df8019..40d3634e5448cd560a6989d07d10ec30e85cf533:/examples/java/app/pingpong/Receiver.java diff --git a/examples/java/app/pingpong/Receiver.java b/examples/java/app/pingpong/Receiver.java index 80d832e156..2617455b45 100644 --- a/examples/java/app/pingpong/Receiver.java +++ b/examples/java/app/pingpong/Receiver.java @@ -21,8 +21,6 @@ public class Receiver extends Process { public void main(String[] args) throws MsgException { Msg.info("hello!"); - double time = Msg.getClock(); - Msg.info("try to get a task"); PingPongTask task = (PingPongTask)Task.receive(getHost().getName()); @@ -31,7 +29,7 @@ public class Receiver extends Process { Msg.info("Got at time "+ timeGot); Msg.info("Was sent at time "+timeSent); - time = timeSent; + double time = timeSent; double communicationTime = timeGot - time; Msg.info("Communication time : " + communicationTime);