// -*- C++ -*-
// $RCSfile: timer.h,v $
// $Revision: 1.4 $
// $Author: langer $
// $Date: 2000/09/06 20:11:49 $


/* This software was produced by NIST, an agency of the U.S. government,
 * and by statute is not subject to copyright in the United States.
 * Recipients of this software assume all responsibilities associated
 * with its operation, modification and maintenance. However, to
 * facilitate maintenance we ask that before distributing modifed
 * versions of this software, you first contact the authors at
 * oof_manager@ctcms.nist.gov. 
 */

#ifndef TIMER_H
#define TIMER_H

#include <sys/time.h>
#include <iostream.h>

class Timer {
    private:
	timeval starttime_u;
        timeval starttime_s;
        int startclock;
    public:
	Timer();
	void operator()(double&, double&, int&) const;	
	friend ostream &operator<<(ostream &, const Timer&);
};

#endif
