public void ParseIPAddress() { var testAddress = settings.Value.TestAddress; var testCount = settings.Value.TestCount; var ip = IPv4.ParseIP(testAddress); Console.WriteLine($"Test: {IPv4.ConvertToBitString(ip)} {IPv4.ConvertToString(ip)} [ParseIPAddress address:{testAddress}]"); var sw = Stopwatch.StartNew(); for (int i = 0; i < testCount; i++) { _ = IPv4.ParseIP(testAddress); } Console.WriteLine($" - {sw.ElapsedMilliseconds} ms"); }