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