Forked from
ogs / ogs
25827 commits behind the upstream repository.
-
Lars Bilke authoredLars Bilke authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CPUTime.cpp 613 B
/**
* \file
* \author Thomas Fischer
* \date 2012-05-10
* \brief Implementation of the CPUTime class.
*
* \copyright
* Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "CPUTime.h"
namespace BaseLib {
void CPUTime::start()
{
_start = clock();
}
void CPUTime::stop()
{
_stop = clock();
}
double CPUTime::elapsed()
{
return (_stop-_start)/(double)(CLOCKS_PER_SEC);
}
} // end namespace BaseLib