timer.h
Upload User: center1979
Upload Date: 2022-07-26
Package Size: 50633k
Code Size: 1k
Category:

OpenGL program

Development Platform:

Visual C++

  1. // timer.h
  2. // 
  3. // Copyright (C) 2001, Chris Laurel <claurel@shatters.net>
  4. //
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9. #ifndef _TIMER_H_
  10. #define _TIMER_H_
  11. class Timer
  12. {
  13.  public:
  14.     Timer() {};
  15.     virtual ~Timer() {};
  16.     virtual double getTime() const = 0;
  17.     virtual void reset() = 0;
  18. };
  19. extern Timer* CreateTimer();
  20. #endif // _TIMER_H_