From 935ecfac2413d299006fb8c1db850c4336af515b Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:04:50 +0000 Subject: Utilisateur : Fcolin Date : 9/06/06 Heure : 10:37 Archivé dans $/CSharp/Ivy/IvyPerf Commentaire: (vss 10) --- CSharp/Ivy/IvyPerf/IvyPerf.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'CSharp') 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 { /// - /// Description résumée de Class1. + /// Description résumée de IvyPerf. + /// mesure des perfo de round trip entre deux applis /// 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; -- cgit v1.1