(file) Return to Stopwatch.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common / Attic

Diff for /pegasus/src/Pegasus/Common/Attic/Stopwatch.h between version 1.20 and 1.21

version 1.20, 2006/01/30 16:17:08 version 1.21, 2006/11/10 18:14:58
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By:  
 //      Chip Vincent (cvincent@us.ibm.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #ifndef Pegasus_Stopwatch_h #ifndef Pegasus_Stopwatch_h
Line 57 
Line 52 
     must be called to start the timer.     must be called to start the timer.
     @example Stopwatch time;     @example Stopwatch time;
     */     */
     Stopwatch(void);      Stopwatch();
  
     /** start - Starts accumulating time and continues until stop is called.     /** start - Starts accumulating time and continues until stop is called.
     The object can be started and stopped multiple times to measure the     The object can be started and stopped multiple times to measure the
     sum of several intervals, but each start must have a corresponding start.     sum of several intervals, but each start must have a corresponding start.
     */     */
     void start(void);      void start();
  
     /** stop - Stops the accumlation of time for an interval. The object     /** stop - Stops the accumlation of time for an interval. The object
     should only stopped if it has been started.     should only stopped if it has been started.
     */     */
     void stop(void);      void stop();
  
     /** reset - Effectively clears the time values stored by a Stopwatch.     /** reset - Effectively clears the time values stored by a Stopwatch.
     */     */
     void reset(void);      void reset();
  
     /** getElapsed - Get the elapsed time for the defined stopwatch. This     /** getElapsed - Get the elapsed time for the defined stopwatch. This
     method should only be called if it is currently stopped.     method should only be called if it is currently stopped.
     @return Returns the elapsed time value as a double (in milliseconds).     @return Returns the elapsed time value as a double (in milliseconds).
     */     */
     double getElapsed(void) const;      double getElapsed() const;
  
     /** Get number of elapsed microseconds     /** Get number of elapsed microseconds
     */     */
     Uint64 getElapsedUsec(void) const;      Uint64 getElapsedUsec() const;
  
     /** printElapsed method gets the current value of the timer and     /** printElapsed method gets the current value of the timer and
     sends it to standard out as a string with the word seconds attached     sends it to standard out as a string with the word seconds attached
     */     */
     void printElapsed(void);      void printElapsed();
  
 private: private:
     Uint64 _start;     Uint64 _start;


Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2