home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / finst151.zip / TIMER.H_ / TIMER.H
C/C++ Source or Header  |  1994-06-18  |  385b  |  31 lines

  1. #ifndef __TIMER_H
  2. #define __TIMER_H
  3.  
  4. #ifndef __WINDOWS_H
  5. #include "windows.h"
  6. #endif
  7.  
  8. class timer
  9. {
  10.    DWORD begtime;
  11.    DWORD deltime;
  12.  
  13.    public:
  14.    timer()
  15.    {
  16.  
  17.    }
  18.    timer(DWORD deltime)
  19.    {
  20.       start(deltime);
  21.    }
  22.    void start(DWORD deltimex)
  23.    {
  24.       begtime = GetTickCount();
  25.       deltime = deltimex;
  26.    }
  27.    int chkelapse();
  28. };
  29.  
  30. #endif
  31.