Skip to content

Commit

Permalink
added stopwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mvadu committed Sep 18, 2015
1 parent 25da17e commit f2435c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Influxer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit f2435c2

Please sign in to comment.