Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Clock.h
Package: OpenGL动画演示(包含代码).rar [view]
Upload User: sz83729876
Upload Date: 2013-03-07
Package Size: 4140k
Code Size: 1k
Category:
OpenGL program
Development Platform:
Windows_Unix
- #ifndef _TIMER_H_
- #define _TIMER_H_
- #include <stdio.h>
- #include "Base.h"
- enum TIMER_TYPE { TIMER_APPSTART, TIMER_SINCEAPPSTART,
- TIMER_SINCELASTFRAME, TIMER_ACTUAL };
- class Timer
- {
- private:
- static LARGE_INTEGER m_llPerformanceFreq;
- static LARGE_INTEGER m_llBeginTime;
- static LARGE_INTEGER m_llLastTime;
- static LARGE_INTEGER m_llCurTime;
- static float m_fTimeScale;
- static float m_fBeginTime;
- static float m_fCurrentTime;
- static float m_fSecSinceLastFrame;
- static float m_fCounter;
- static float m_fFPS, m_fTempFPS;
- static long m_dwFrameCount;
- public:
- static float GetFPS();
- static float GetTimer( TIMER_TYPE enumType );
- static bool OncePerFrameQuery( HWND hWnd );
- static bool Initialize();
- };
- #endif