Jump to content
  • Advertisement
Sign in to follow this  
NexusOne

[.net] How do I set a time limit?? (for a Chess AI)

This topic is 4770 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Have a timer that updates and add the ability to register a callback for a specific time or delta. That way you can register any method to happen when the time or delta reaches a certain point.

Share this post


Link to post
Share on other sites
Where is the .NET utility class to do this? I need a class that can keep exact time in a separate thread and stop when a certain number of ticks has been reached.

Share this post


Link to post
Share on other sites
Quote:
Original post by NexusOne
Where is the .NET utility class to do this? I need a class that can keep exact time in a separate thread and stop when a certain number of ticks has been reached.


There is a Timer class under the namespace System.Timers. You can read more about it here.

Bob

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!