Ok. i'm programming a game in DirectX and I need to lock my frame rate to 30fps. How do i do this? Please someone give me some code or atleast a good function I can use to get the time with precision.