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