Jump to content
  • Advertisement
Sign in to follow this  
Froyd

[MDX] Utility.Timer

This topic is 4167 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

Hi! Managed DirectX 9 - kickstart (book) I've been googling around to find Utility.Timer(DirectXTimer.GetElapsedTime) I've found Some .cs files in June 2007's SDK \Managed\Common folder dxmutmisc.cs to be more specific. Unfortunately, it's not able to find the NativeMethods it's referring to. Any help to get a High-Precision timer running?

Share this post


Link to post
Share on other sites
Advertisement

At the top of this page you'll find a demo project with the timer cut from dxmutmisc.cs, so it's selfcontained with the required native methods. If you're using .NET 2.0, another option would be to use System.Diagnostics.Stopwatch (or something similar).

Hope this helps :)

Share this post


Link to post
Share on other sites
My Savior!
I think i'm in love!

this works like a charm.
I really wonder why it isn't part of the framework!
This is absolutely necessary to not render frames at the speed of the machine

(Unless you REALLY want to use a wait for an amount of time based on tickcount and use the whole processor up doing so)

you deserve a cookie

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!