I\'m making a program in which I need to get the time in milliseconds. By time, I mean a number that is never equal to itself, and is always 1000 numbers bigger than it was a se
Using Stopwatch class we can achieve it from System.Diagnostics.
System.Diagnostics
Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); stopwatch.Stop(); Debug.WriteLine(stopwatch.ElapsedMilliseconds);