diff options
author | fcolin | 2007-02-01 10:04:37 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:04:37 +0000 |
commit | 639b621a74dfa5da09b756f2cee5cde6e4b5cc07 (patch) | |
tree | 714939fe926c4fce0e4edf998c62014e4c8c7184 /CSharp/Ivy/IvyPerf/IvyPerf.cs | |
parent | 63a06beae3f8e5495c6d374c8bdcd92d9095453e (diff) | |
download | ivy-csharp-639b621a74dfa5da09b756f2cee5cde6e4b5cc07.zip ivy-csharp-639b621a74dfa5da09b756f2cee5cde6e4b5cc07.tar.gz ivy-csharp-639b621a74dfa5da09b756f2cee5cde6e4b5cc07.tar.bz2 ivy-csharp-639b621a74dfa5da09b756f2cee5cde6e4b5cc07.tar.xz |
Utilisateur : Fcolin Date : 20/01/06 Heure : 18:29 Archivé dans $/CSharp/Ivy/IvyPerf Commentaire: (vss 4)
Diffstat (limited to 'CSharp/Ivy/IvyPerf/IvyPerf.cs')
-rw-r--r-- | CSharp/Ivy/IvyPerf/IvyPerf.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CSharp/Ivy/IvyPerf/IvyPerf.cs b/CSharp/Ivy/IvyPerf/IvyPerf.cs index a25e58a..b51f3fd 100644 --- a/CSharp/Ivy/IvyPerf/IvyPerf.cs +++ b/CSharp/Ivy/IvyPerf/IvyPerf.cs @@ -24,14 +24,14 @@ namespace IvyPerf [IvyBinding("^ping ts=(.*)")]
static void Reply(IvyClient client, string[] args)
{
- bus.sendMsg(c,"pong ts={0} tr={1}", args[0], currentTime());
+ bus.sendMsg("pong ts={0} tr={1}", args[0], currentTime());
}
[IvyBinding("^pong ts=(.*) tr=(.*)")]
static void Pong(IvyClient client, string[] args)
{
double current = currentTime();
- double ts = double.Parse( args[0], c );
- double tr = double.Parse(args[1], c);
+ double ts = double.Parse( args[0], bus.Culture );
+ double tr = double.Parse(args[1], bus.Culture );
double roundtrip1 = tr-ts;
double roundtrip2 = current - ts;
Console.WriteLine( "round trip {0} {1}", roundtrip1 , roundtrip2 );
@@ -42,7 +42,7 @@ namespace IvyPerf [STAThread]
static void Main(string[] args)
{
- c = new CultureInfo("en-us");
+
bus = new Ivy("IvyPerf", "IvyPref ready");
bus.AutoBinding(typeof(IvyPerf));
//bus.bindMsg( "^ping ts=(.*)", new Ivy.MessageHandler( Reply ) );
@@ -53,7 +53,7 @@ namespace IvyPerf while( true )
{
Thread.Sleep( 1000 );
- int count = bus.sendMsg(c,"ping ts={0}", currentTime());
+ int count = bus.sendMsg("ping ts={0}", currentTime());
if ( count == 0 ) Console.Write( "." );
}
}
|