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