   Framerate in DirectX
  I know how to calculate frame rate, but I'm trying to figure out if I'm placing them right. I am calculating a core game loop frame rate and a screen frame rate. I figured the core would occur after BeginScene where I render everything, and the screen frame rate would occur before I call BeginScene. This just makes the screen frame rate double the core. I just wanted to check to see if this correct or not.   
  I dunno the best way, but I made a 64 bit timer class that starts when my program first hits my render routines.I then increment a frame counter after the render, get elapsed time, and divide.I suppose you could handle timer overflow by tracking the last 3 of these sets of data and checking if the timer flipped, then toss out the before and after as if they never happened.That gives me my total frames per second.I've seen others keep a running average.I'm not sure about tracking just render time alone. That statistic wouldn't be of use to me unless I was trying to track down a rendering problem in particular, in which case I'd profile it differently.