Public Member Functions | |
PerformanceCounter () | |
unsigned int | Count () |
~PerformanceCounter () | |
Private Attributes | |
unsigned int | count_ |
Definition at line 381 of file rSysdep.cpp.
PerformanceCounter::PerformanceCounter | ( | ) | [inline] |
Definition at line 384 of file rSysdep.cpp.
References tRealSysTimeFloat().
00384 : 00385 PerformanceCounter(): count_(0){ 00386 tRealSysTimeFloat(); }
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
unsigned int PerformanceCounter::Count | ( | ) | [inline] |
Definition at line 387 of file rSysdep.cpp.
Referenced by rSysDep::SwapGL().
00388 { 00389 return count_++;
unsigned int PerformanceCounter::count_ [private] |
Definition at line 402 of file rSysdep.cpp.