home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / IKLOWNS / CGTIMER.H < prev    next >
C/C++ Source or Header  |  1996-08-28  |  1KB  |  47 lines

  1. /*===========================================================================*\
  2. |
  3. |  File:        cgtimer.h
  4. |
  5. |  Description: 
  6. |       
  7. |-----------------------------------------------------------------------------
  8. |
  9. |  Copyright (C) 1995-1996 Microsoft Corporation.  All Rights Reserved.
  10. |
  11. |  Written by Moss Bay Engineering, Inc. under contract to Microsoft Corporation
  12. |
  13. \*===========================================================================*/
  14.  
  15. /**************************************************************************
  16.  
  17.     (C) Copyright 1995-1996 Microsoft Corp.  All rights reserved.
  18.  
  19.     You have a royalty-free right to use, modify, reproduce and 
  20.     distribute the Sample Files (and/or any modified version) in 
  21.     any way you find useful, provided that you agree that 
  22.     Microsoft has no warranty obligations or liability for any 
  23.     Sample Application Files which are modified. 
  24.  
  25.     we do not recomend you base your game on IKlowns, start with one of
  26.     the other simpler sample apps in the GDK
  27.  
  28.  **************************************************************************/
  29.  
  30. class CGameTimer {
  31.  
  32. public:
  33.     volatile int paused;
  34.     int rate;
  35.     HANDLE  thread;
  36.     HANDLE  Event;
  37.     volatile int    Time;
  38.  
  39.     CGameTimer (void);
  40.     ~CGameTimer (void);
  41.  
  42.     void    SetRate(int hertz);
  43.     int     GetRate(void);
  44.     void    Pause(void);
  45.     void    Resume(void);
  46. };
  47.