How can I store all of the server's ping captures in an array.
I capture it and show it in a listbox and from there I grab the smaller and bigger ping, I put a timer to do it every second. The problem is that if you paint every second you will create a loop.
private void timer1_Tick(object sender, EventArgs e)
{
for (int i = 0; i < 2; ++i)
{
double[] num = new double[i];
using (Ping p = new Ping())
{
listBox1.Items.Add(p.Send("ip99.ip-144-217-175.net").RoundtripTime.ToString() + "ms\n");
lblbajo.Text = listBox1.Items.Cast<string>().Min(x => Convert.ToString(x));
lblalto.Text = listBox1.Items.Cast<string>().Max(x => Convert.ToString(x));
}
listBox1.Items.Clear();
}
}