Mantid
Loading...
Searching...
No Matches
AlgorithmExecuteProfile.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9
10namespace Mantid {
11namespace API {
12
13//---------------------------------------------------------------------------------------------
25 Instrumentation::AlgoTimeRegister::Instance();
27 return executeInternal();
28}
29void Algorithm::addTimer(const std::string &name, const Kernel::time_point_ns &begin,
30 const Kernel::time_point_ns &end) {
31 Instrumentation::AlgoTimeRegister::Instance().addTime(name, begin, end);
32}
33} // namespace API
34} // namespace Mantid
std::string name
Definition Run.cpp:60
bool execute() override final
The actions to be performed by the algorithm on a dataset.
bool executeInternal()
Invoced internally in execute()
void addTimer(const std::string &name, const Kernel::time_point_ns &begin, const Kernel::time_point_ns &end)
const std::string name() const override=0
function to return a name of the algorithm, must be overridden in all algorithms
std::chrono::time_point< std::chrono::high_resolution_clock > time_point_ns
Definition Algorithm.h:39
Helper class which provides the Collimation Length for SANS instruments.