Skip to content
Snippets Groups Projects
CPUTime.h 384 B
Newer Older
  • Learn to ignore specific revisions
  • 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