//Programmer: Bo Bayles  Date: 15 November 2004
//File: StopWatch.h      Class: CS54 C
//Purpose: This header file defines the StopWatch class.

#ifndef STOPWATCH_H
#define STOPWATCH_H

  class StopWatch
  {
    private:
      int iStartTime;
      int iElapsedTime;
    //Variables to hold the starting and elapsed times.

    public:
      StopWatch();
      //Default constructor
      //Initializes the member variables to zero.
      void start();
      //Sets the iStartTime variable to the current time.
      //Returns nothing.
      void stop();
      //Sets the iElapsedTime variable to the current time minus the iStartTime
      //  variable.
      //Returns nothing.
      void reset();
      //Sets the iElapsedTime and iStartTime variables back to zero
      //Returns nothing.
      int getElapsedTime();
      //Returns the iElapsedTime variable to the calling function.
  };

#endif


