   How can I time things in directx?
  I'm trying to find a way to set timing in directx. Basically I have a renderloop (locked to 60 times a second) and an input/output loop.I've been trying to figure out how I can create instances that happen once ever 10 seconds (like the rate of fireing a gun).Looking online there seem to be many ways of timing things but I'm not sure which would be best to use in directx.Just looking for a generel direction I should take, a method or function I should try to use, not looking for answers here.   
  You'll probably just want to make a simple timer class based on QueryPerformanceCounter and QueryPerformanceFrequency,   which are part of the Win32 API.  They're easy enough to use, and will give you high-resolution timing even on multicore CPU's.  There's also an article in the DX SDK that talks a bit about using those functions for timing on multicore systems.   ;  Also take a look at the sample framework, which IIRC has some code for timing things.If you just want to do performance profiling, you might consider using PIX instead.   