27 Profiler<T>::Scope::Scope(Profiler::Item& rItem)
28 : Scope(rItem, Clock::now())
34 Profiler<T>::Scope::Scope(Profiler::Item& rItem, std::chrono::high_resolution_clock::time_point Begin)
39 ++mrItem.mRecursionLevel;
46 if (!--mrItem.mRecursionLevel) {
47 const auto duration = std::chrono::duration_cast<Profiler::TimeUnit>(Clock::now() - mBegin);
48 mrItem.mCumulative += duration;
49 mrItem.mMin =
std::min(mrItem.mMin, duration);
50 mrItem.mMax =
std::max(mrItem.mMax, duration);
RAII wrapper for updating an Item.
Definition: profiler.h:94
Definition: profiler.h:33
static double max(double a, double b)
Definition: GeometryFunctions.h:79
static double min(double a, double b)
Definition: GeometryFunctions.h:71
Definition: factory.h:208