The Stat Class

 

An object of this type is returned by the raytracer after rendering. It contains all the statistics your curiosity might push you to look for.

The usefull methods are :

    const char* printYourself();  // returns a printable string reporting all the statistics
	int getNbShadowTests() { return nbShadowTests; }
	int getNbIntersectionTests() { return nbIntersectionTests; }
	int getNbReflectedRays() { return nbReflectedRays; }
	int getNbRefractedRays() { return nbRefractedRays; }
	int getNbPrimaryRays() { return nbPrimaryRays; }
	int getTotalTime() { return totalTime; }
	int getCpuTime() { return cpuTime; }