Using Stopwatch in C#
问题 Does anyone know how I can add a timer function to this code that solves sudoku puzzles? I've tried the Stopwatch class but I can't get it to work because I don't know exactly where to put it. I've tried several places but always get errors. The main purpose of the code works but I'd like to add a timer function to see how long the code ran for. using System; namespace SuDoKu { public class SuDoKu { private int[,] grid; public SuDoKu() { grid = new int[9, 9]; } static void Main(string[] args)