I've got a process that fills in a random board, hopefully in the most efficient way, I've got a loop that I'm running that I want to time from the start of the loop to when it finishes like a stopwatch so I can then compare the result from one path finding algorithm to another, I've not used timers like this before and am unsure if I'm going about it the wrong way.
This, I hope shows more what I'm trying to do
System.Timers.Timer gameTime = new System.Timers.Timer();
gameTime.Interval = (1000);
gameTime.Enabled = true;
gameTime.Start();
m_turn = 1;
do
{
//Proccess here
m_turn++
while(m_turn <= 1000)
gameTime.Stop();
string printTime = gameTime. //The amount of times the interval has passed?