Calculate processing time.



Hello,

I do:

Debug.WriteLine("A: " & DateTime.Now.Ticks.ToString)
REM Calculate a bunch of stuff. Some loops and math functions.
Debug.WriteLine("B: " & DateTime.Now.Ticks.ToString)

but both A and B have the exact the same value. Is this method incorrect?
When I make the function wait for 1 millisecond, A en B differ. Is there
another way to calculate the processing time? Without looping the stuff a
100 times and then devide the result by 100.

Thanks.


.



Relevant Pages

  • Re: Calculate processing time.
    ... Some loops and math functions. ... but both A and B have the exact the same value. ... Is this method incorrect? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Calculate processing time.
    ... Some loops and math functions. ... When I make the function wait for 1 millisecond, ... Is there another way to calculate the processing time? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Calculate processing time.
    ... Some loops and math functions. ... > but both A and B have the exact the same value. ... The first time you run a routine the CLR might do some optimizing that ...
    (microsoft.public.dotnet.languages.vb)