home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWTIMER_H__
- #define __RWTIMER_H__
- pragma push_align_members(64);
-
- /*
- * RWTimer: measures elapsed time
- *
- * $Header: E:/vcs/rw/timer.h_v 1.0 11 Mar 1992 14:10:46 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave Software, Inc.
- * P.O. Box 2328
- * Corvallis, OR 97339
- *
- * Copyright (C) 1992. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/timer.h_v $
- *
- * Rev 1.0 11 Mar 1992 14:10:46 KEFFER
- * Initial revision.
- */
-
- #ifndef __RWDEFS_H__
- # include "rw/defs.h"
- #endif
-
- class RWExport RWTimer {
-
- double _startTime;
- double _stopTime;
- RWBoolean _isStopped;
-
- static double absoluteTime();
-
- public:
- RWTimer();
-
- double elapsedTime() const;
- void reset();
- void start();
- void stop();
- };
-
- pragma pop_align_members();
- #endif /* __RWTIMER_H__ */
-