In regard to timing...
Author |
Message |
Piro24
|
Posted: Tue Nov 07, 2006 8:51 pm Post subject: 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? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Tue Nov 07, 2006 9:22 pm Post subject: (No subject) |
|
|
Time.Elapsed is perfect. You can record a value, and use it later. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
ericfourfour
|
Posted: Tue Nov 07, 2006 10:26 pm Post subject: (No subject) |
|
|
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. |
|
|
|
|
|
|
|