diff options
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( "." );
}
}
|