summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPerf
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp/Ivy/IvyPerf')
-rw-r--r--CSharp/Ivy/IvyPerf/IvyPerf.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/CSharp/Ivy/IvyPerf/IvyPerf.cs b/CSharp/Ivy/IvyPerf/IvyPerf.cs
index 5cc69d8..1df4224 100644
--- a/CSharp/Ivy/IvyPerf/IvyPerf.cs
+++ b/CSharp/Ivy/IvyPerf/IvyPerf.cs
@@ -7,7 +7,8 @@ using System.Collections.Specialized;
namespace IvyPerf
{
/// <summary>
- /// Description résumée de Class1.
+ /// Description résumée de IvyPerf.
+ /// mesure des perfo de round trip entre deux applis
/// </summary>
class IvyPerf
{
@@ -22,15 +23,15 @@ namespace IvyPerf
return time;
}
[IvyBinding("^ping ts=(.*)")]
- static void Reply(IvyClient client, string[] args)
+ static void Reply(object sender, IvyMessageEventArgs args)
{
bus.SendMsg("pong ts={0} tr={1}", args[0], currentTime() - origin );
}
[IvyBinding("^pong ts=(.*) tr=(.*)")]
- static void Pong(IvyClient client, string[] args)
+ static void Pong(object sender, IvyMessageEventArgs args)
{
double current = currentTime() - origin;
- double ts = double.Parse( args[0], bus.Culture );
+ double ts = double.Parse(args[0], bus.Culture );
double tr = double.Parse(args[1], bus.Culture );
double roundtrip1 = tr - ts;
double roundtrip2 = current - tr;