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 {
11Instrumentation::AlgoTimeRegister Instrumentation::AlgoTimeRegister::globalAlgoTimeRegister;
12namespace API {
13
14//---------------------------------------------------------------------------------------------
25bool Algorithm::execute() {
26 Instrumentation::AlgoTimeRegister::AlgoTimeRegister::Dump dmp(
28 return executeInternal();
29}
30void Algorithm::addTimer(const std::string &name, const Kernel::time_point_ns &begin,
31 const Kernel::time_point_ns &end) {
33}
34} // namespace API
35} // namespace Mantid
bool execute() override final
The actions to be performed by the algorithm on a dataset.
bool executeInternal()
Invoced internally in execute()
Definition: Algorithm.cpp:512
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
static AlgoTimeRegister globalAlgoTimeRegister
void addTime(const std::string &name, const std::thread::id thread_id, const Kernel::time_point_ns &begin, const Kernel::time_point_ns &end)
std::chrono::time_point< std::chrono::high_resolution_clock > time_point_ns
Definition: Algorithm.h:45
Helper class which provides the Collimation Length for SANS instruments.