Hello,
I am using TimeSpan to calculate the time my program takes.
Here's the code
but the time I get in accuracy of 15ms.
I get either 15ms, or 31ms, or 46ms. And sometimes 0ms
I want it to show things like 8ms too, but it shows 0ms.
How to find a solution to this.
I am using TimeSpan to calculate the time my program takes.
Here's the code
Code:
DateTime start = DateTime.Now; //**my code here DateTime end = DateTime.Now; span = end.Subtract(start); ResultUserForm.Controls["lblTimer"].Text = string.Concat(span.Milliseconds.ToString(), "ms");
but the time I get in accuracy of 15ms.
I get either 15ms, or 31ms, or 46ms. And sometimes 0ms
I want it to show things like 8ms too, but it shows 0ms.
How to find a solution to this.
Comment