https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 9fea751d8d941b779d9b88f9abf73d42888ce725 authored by Karsten Rink on 28 November 2014, 20:35:27 UTC
material ids are now again numbered starting from 0
Tip revision: 9fea751
RunTime.h
/**
 * \file
 * \author Thomas Fischer
 * \date   2012-05-10
 * \brief  Definition of the RunTime class.
 *
 * \copyright
 * Copyright (c) 2012-2014, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#ifndef RUNTIME_H
#define RUNTIME_H

#ifndef _MSC_VER
#include <sys/time.h>
#else
#include <windows.h>
#endif

namespace BaseLib {

class RunTime
{
public:
	void start();
	void stop();
	double elapsed();
private:
#ifndef _MSC_VER
	timeval _start;
	timeval _stop;
#else
	unsigned long _start;
	unsigned long _stop;
#endif
};

} // end namespace BaseLib

#endif
back to top