Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 How do I reset Timer.Elapsed?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Luffy123




PostPosted: Sat Jun 16, 2012 4:24 pm   Post subject: How do I reset Timer.Elapsed?

I'm making a game with a timer and when the user clicks restart game at the end of the game the timer.elapsed is still the current time elapsed.. hwo do i set it to restart?
Sponsor
Sponsor
Sponsor
sponsor
Dreadnought




PostPosted: Sat Jun 16, 2012 4:45 pm   Post subject: Re: How do I reset Timer.Elapsed?

You can't reset it to zero. But you can get the same effect. Suppose 27 seconds have passed and you want to "reset" the clock, but you can't. Later in the program your clock reads 35 seconds, how many seconds have passed since the moment you wanted to "reset" the clock? 8 seconds!

How did we get 8 seconds?
What did we have to remember?
How do we remember things in a program?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: