summaryrefslogtreecommitdiff
path: root/cs/demo/Ice/latency/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'cs/demo/Ice/latency/Client.cs')
-rwxr-xr-xcs/demo/Ice/latency/Client.cs30
1 files changed, 15 insertions, 15 deletions
diff --git a/cs/demo/Ice/latency/Client.cs b/cs/demo/Ice/latency/Client.cs
index a65f14320c4..8f6e1cca9f8 100755
--- a/cs/demo/Ice/latency/Client.cs
+++ b/cs/demo/Ice/latency/Client.cs
@@ -22,21 +22,21 @@ public class Client : Ice.Application
return 1;
}
- //
- // A method needs to be invoked thousands of times before the JIT compiler
- // will convert it to native code. To ensure an accurate latency measurement,
- // we need to "warm up" the JIT compiler.
- //
- {
- int reps = 20000;
- Console.Error.Write("warming up the JIT compiler...");
- Console.Error.Flush();
- for(int i = 0; i < reps; i++)
- {
- ping.ice_ping();
- }
- Console.Error.WriteLine("ok");
- }
+ //
+ // A method needs to be invoked thousands of times before the JIT compiler
+ // will convert it to native code. To ensure an accurate latency measurement,
+ // we need to "warm up" the JIT compiler.
+ //
+ {
+ int reps = 20000;
+ Console.Error.Write("warming up the JIT compiler...");
+ Console.Error.Flush();
+ for(int i = 0; i < reps; i++)
+ {
+ ping.ice_ping();
+ }
+ Console.Error.WriteLine("ok");
+ }
long tv1 = (System.DateTime.Now.Ticks - 621355968000000000) / 10000;
int repetitions = 100000;