summaryrefslogtreecommitdiff
path: root/java/demo/Ice/latency/Client.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-08-14 10:37:16 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-08-14 10:37:16 -0230
commit13c8da45cf4c892a17bda4f224a832bafd8e1bf4 (patch)
treed251dc62af721096338ac5be0ecbeaa825ce0e9e /java/demo/Ice/latency/Client.java
parentMore fixes to the interrupt test. (diff)
downloadice-13c8da45cf4c892a17bda4f224a832bafd8e1bf4.tar.bz2
ice-13c8da45cf4c892a17bda4f224a832bafd8e1bf4.tar.xz
ice-13c8da45cf4c892a17bda4f224a832bafd8e1bf4.zip
- Cleaned up all demos.
- Fixed all demo warnings. - Fixed applet and swing demo to use invocation timeout, not connect timeouts.
Diffstat (limited to 'java/demo/Ice/latency/Client.java')
-rw-r--r--java/demo/Ice/latency/Client.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/demo/Ice/latency/Client.java b/java/demo/Ice/latency/Client.java
index 7e98b6d08a1..b88c3102083 100644
--- a/java/demo/Ice/latency/Client.java
+++ b/java/demo/Ice/latency/Client.java
@@ -11,6 +11,7 @@ import Demo.*;
class Client extends Ice.Application
{
+ @Override
public int
run(String[] args)
{
@@ -53,7 +54,7 @@ if((i % 100) == 0) System.out.println("" + i);
}
long tv2 = System.currentTimeMillis();
- double total = (double)(tv2 - tv1);
+ double total = tv2 - tv1;
double perPing = total / repetitions;
System.out.println("time for " + repetitions + " pings: " + total + "ms");