A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reduce Java debt (endless wip)
[simgrid.git]
/
examples
/
java
/
app
/
pingpong
/
Receiver.java
diff --git
a/examples/java/app/pingpong/Receiver.java
b/examples/java/app/pingpong/Receiver.java
index
80d832e
..
2617455
100644
(file)
--- 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!");
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());
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);
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);
double communicationTime = timeGot - time;
Msg.info("Communication time : " + communicationTime);