From f2435c26c51f5e881c59c34869e5e47bfe3142db Mon Sep 17 00:00:00 2001 From: Adarsha Date: Fri, 18 Sep 2015 17:18:48 +0400 Subject: [PATCH] added stopwatch --- Influxer/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Influxer/Program.cs b/Influxer/Program.cs index 5b61e99..70ca730 100644 --- a/Influxer/Program.cs +++ b/Influxer/Program.cs @@ -130,6 +130,9 @@ static int Main(string[] args) #endregion try { + Stopwatch stopwatch = new Stopwatch(); + stopwatch.Start(); + HttpClientHandler handler = new HttpClientHandler (); handler.UseDefaultCredentials = true; handler.PreAuthenticate = true; @@ -158,10 +161,10 @@ static int Main(string[] args) result = ProcessGenericFile (inputFileName, tableName, client).Result; break; } - + stopwatch.Stop(); if ( result ) { - Console.WriteLine ("Finished!!"); + Console.WriteLine ("\n Finished!! Processed in {0}", stopwatch.Elapsed.ToString()); return 0; }