Computer Science Canada any timing feature in turing? |
Author: | WangChang [ Wed Mar 08, 2006 4:53 pm ] |
Post subject: | any timing feature in turing? |
I have a game i made, very simple where they have to type the exact mesage, I was wondering it there was a possible way to make it show how many "seconds" it takes for them to type whatever thanks alot! |
Author: | [Gandalf] [ Wed Mar 08, 2006 5:11 pm ] | ||
Post subject: | |||
Use the Time.Elapsed function which returns the amount of milliseconds since the program was started. You can manipulate it in ways like this:
Note: The above is obviously not Turing code, but it should be enough for you to get the picture. |
Author: | WangChang [ Wed Mar 08, 2006 6:13 pm ] | ||
Post subject: | |||
Please help me add a feature to this code showing the time it takes to type the random integers created. Thank you so very much.. |
Author: | Delos [ Wed Mar 08, 2006 7:12 pm ] |
Post subject: | |
[Gandalf] wrote: Use the Time.Elapsed function...
What more is there to say? We appreciate you posting your code, but if you haven't at least attempted to solve this given the new information you've been presented with, then you're not learning anything. Press F10 and look up how to use this syntax. Then follow Gandalf's pseudo to code it. |