//File : TimeClock.h //Author : Andre Long //Due : November 24, 2004 //Description: This class (TimeClock) is derived from the Miltime class which was derived from the Time class #ifndef TimeClock_H #define TimeClock_H #include #include"MilTime.h" using std::cout; using std::endl; class TimeClock : public MilTime { protected: MilTime startTime; MilTime endTime; long timeHRS; long timeMIN; long timeSEC; long trueTimeHRS; long trueTimeMIN; long trueTimeSEC; long startTempH; long startTempM; long startTempS; long endTempH; long endTempM; long endTempS; long convertedHRS; long convertedMIN; long convertedSEC; long realMIN_A; long realMIN; long realSEC; long realHRS; long totalstart; long totalend; long difftime; public: TimeClock() { MilTime startTime(0,0); MilTime endTime(0,0); } TimeClock(MilTime start, MilTime end) { startTime=start; endTime=end; elapseTime(); } void elapseTime() { //convert all times to seconds startTempH= (startTime.getHour() * 60 * 60); startTempM= (startTime.getMin() * 60); startTempS= (startTime.getSec() * 1); endTempH= (endTime.getHour() * 60 * 60); endTempM= (endTime.getMin() * 60); endTempS= (endTime.getSec() * 1); totalstart=startTempH+startTempM+startTempS; totalend=endTempH+endTempM+endTempS; difftime=totalend-totalstart; cout<<"timeHRS = "<