Code:
framespersec = 1000.0F / (float)(dwTick - dwLast);
Means that i want the result of (dwTick - dwLast) to be casted into
floating point value before dividing 1000.0F by it, which is to prevent
the final result from being rounded into an integer value.