home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / E2 < prev    next >
Encoding:
Text File  |  1992-06-07  |  1.0 KB  |  50 lines

  1. #ifndef __RWTIMER_H__
  2. #define __RWTIMER_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWTimer: measures elapsed time
  7.  *
  8.  * $Header:   E:/vcs/rw/timer.h_v   1.0   11 Mar 1992 14:10:46   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave Software, Inc.
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  *
  16.  * Copyright (C) 1992. This software is subject to copyright 
  17.  * protection under the laws of the United States and other countries.
  18.  *
  19.  ***************************************************************************
  20.  *
  21.  * $Log:   E:/vcs/rw/timer.h_v  $
  22.  * 
  23.  *    Rev 1.0   11 Mar 1992 14:10:46   KEFFER
  24.  * Initial revision.
  25.  */
  26.  
  27. #ifndef __RWDEFS_H__
  28. #  include "rw/defs.h"
  29. #endif
  30.  
  31. class RWExport RWTimer {
  32.  
  33.   double    _startTime;
  34.   double    _stopTime;
  35.   RWBoolean    _isStopped;
  36.  
  37.   static double    absoluteTime();
  38.  
  39. public:
  40.   RWTimer();
  41.  
  42.   double    elapsedTime() const;
  43.   void        reset();
  44.   void        start();
  45.   void        stop();
  46. };
  47.  
  48. pragma pop_align_members();
  49. #endif    /* __RWTIMER_H__ */
  50.