
-----------------------------------
Piro24
Tue Nov 07, 2006 8:51 pm

In regard to timing...
-----------------------------------
I want to know if there is a command I could use that would start timing at a given point...Time.Elapsed starts counting time as soon as the program starts to run, regardless of where it is in the program...

I want to know how many seconds have gone by in a loop, and Time.Elapsed doesnt seem right for that.

Any help?

-----------------------------------
Tony
Tue Nov 07, 2006 9:22 pm


-----------------------------------
Time.Elapsed is perfect. You can record a value, and use it later.

-----------------------------------
ericfourfour
Tue Nov 07, 2006 10:26 pm


-----------------------------------
Time.Elapsed is the amount of time the program has been running. It is also the difference between the start time and the current time. What you have to do is find the difference between two times. Except these two times may not be the start time and the current time. This is where you have to use variables.
