void ClientBenchmarkIntegrated(object state) { Stream client = (Stream)state; var sa = new SecureStreamClientIntegratedSecurity(); m_sw.Start(); sa.TryAuthenticate(client); m_sw.Stop(); System.Console.WriteLine(m_sw.Elapsed.TotalMilliseconds); m_sw.Restart(); sa.TryAuthenticate(client); m_sw.Stop(); System.Console.WriteLine(m_sw.Elapsed.TotalMilliseconds); m_sw.Restart(); sa.TryAuthenticate(client); m_sw.Stop(); System.Console.WriteLine(m_sw.Elapsed.TotalMilliseconds); m_sw.Restart(); sa.TryAuthenticate(client); m_sw.Stop(); System.Console.WriteLine(m_sw.Elapsed.TotalMilliseconds); m_sw.Restart(); sa.TryAuthenticate(client); m_sw.Stop(); System.Console.WriteLine(m_sw.Elapsed.TotalMilliseconds); }