using System;using System.Collections.Generic;using System.Linq;using System.Diagnostics;using System.Text;using System.Threading.Tasks;namespace SoloLearn{ class Program { static void Main(string[] args) { Stopwatch watch = new Stopwatch(); watch.Start(); for (int i = 0; i < 1000; i++) { Console.WriteLine(i); } watch.Stop(); Console.WriteLine($"Execution Time: {watch.ElapsedMilliseconds} ms"); } }}
dotnet run
f5
ctrl + f5