PerformanceCounter Class Reference

List of all members.

Public Member Functions

 PerformanceCounter ()
unsigned int Count ()
 ~PerformanceCounter ()

Private Attributes

unsigned int count_


Detailed Description

Definition at line 381 of file rSysdep.cpp.


Constructor & Destructor Documentation

PerformanceCounter::PerformanceCounter (  )  [inline]

Definition at line 384 of file rSysdep.cpp.

References tRealSysTimeFloat().

00384       :
00385     PerformanceCounter(): count_(0){
00386         tRealSysTimeFloat();
    }

Here is the call graph for this function:

PerformanceCounter::~PerformanceCounter (  )  [inline]

Definition at line 390 of file rSysdep.cpp.

00392     {
00393         double time = tRealSysTimeFloat();
00394         std::stringstream s;
00395         s << count_ << " frames in " << time << " seconds: " << count_ / time << " fps.\n";
00396 #ifdef WIN32
00397         MessageBox (NULL, s.str().c_str() , "Performance", MB_OK);
00398 #else
00399         std::cout << s.str();
00400 #endif


Member Function Documentation

unsigned int PerformanceCounter::Count (  )  [inline]

Definition at line 387 of file rSysdep.cpp.

Referenced by rSysDep::SwapGL().

00388                         {
00389         return count_++;

Here is the caller graph for this function:


Member Data Documentation

unsigned int PerformanceCounter::count_ [private]

Definition at line 402 of file rSysdep.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:52:05 2008 for Armagetron Advanced by  doxygen 1.5.4