Skip to content
Snippets Groups Projects
CPUTime.h 625 B
Newer Older
Lars Bilke's avatar
Lars Bilke committed
/**
Lars Bilke's avatar
Lars Bilke committed
 * Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.net)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.net/LICENSE.txt
 *
 *
Lars Bilke's avatar
Lars Bilke committed
 * \file CPUTime.h
Lars Bilke's avatar
Lars Bilke committed
 * Created on 2012-05-10 by Thomas Fischer
 */

#ifndef CPUTIME_H
#define CPUTIME_H

#include <ctime>

#include "TimeMeasurementBase.h"

namespace BaseLib {

class CPUTime
{
public:
	virtual void start();
    virtual void stop();
    virtual double elapsed();
	~CPUTime() {};
private:
	clock_t _start;
	clock_t _stop;
};

} // end namespace BaseLib

#endif