?? cfpscounter.h
字號:
/*
*
============================================================================
* Name : CFpsCounter.h
* Part of : Example3D
* Created : 12/14/2003 by Forum Nokia
* Description:
* This is the project specification file for Example3D.
* Initial content was generated by Series 60 AppWizard.
*
* Version : 1.0.0
* Copyright: Forum Nokia
*
============================================================================
*/
#ifndef __CFPSCOUNTER_H__
#define __CFPSCOUNTER_H__
// INCLUDES
#include <e32base.h>
// CLASS DECLARATION
/**
* Utility class to count application speed
* in frames per second
*/
class CFpsCounter
: public CBase
{
public:
/// Two-phased constructor
static CFpsCounter* NewL( TInt aInterval );
/// Destructor
~CFpsCounter();
private:
/// Default constructor
/// @param aInterval update interval in seconds
CFpsCounter( TInt aInterval );
public: // New methods
/// Frames per second
/// @return frames per second count
TInt Fps();
/// Updates counter
/// This must be called every time a frame is drawn
void Update();
/// Sets update interval
/// @param aInterval interval in seconds
void SetInterval( TInt aInterval );
private: // data
TInt iSecs;
TInt iInterval;
TInt iFrames;
TInt iSeconds;
TInt iStartTicks;
TInt iTicksPerSecond;
TInt iFps;
};
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -