inline double FpsCounter::elapsed() { return (rolex_.isRunning()) ? rolex_.elapsed() : elapsed_; }
inline void FpsCounter::frame() { assert(rolex_.isRunning() && "Calling frame() on a stopped FpsCounter is mongo[tm]."); ++frames_; }