From d4b42b0e2234310b88d88c38cfda079dc9b931f8 Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@mpcdf.mpg.de> Date: Tue, 20 Oct 2020 20:15:34 +0200 Subject: [PATCH] rename class bfps_timer to turtle_timer --- cpp/bfps_timer.hpp | 20 ++++++++++---------- cpp/scope_timer.cpp | 2 +- cpp/scope_timer.hpp | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cpp/bfps_timer.hpp b/cpp/bfps_timer.hpp index d5b1147b..0bf74c7c 100644 --- a/cpp/bfps_timer.hpp +++ b/cpp/bfps_timer.hpp @@ -21,8 +21,8 @@ * Contact: Cristian.Lalescu@ds.mpg.de * * * **********************************************************************/ -#ifndef BFPS_TIMER_HPP -#define BFPS_TIMER_HPP +#ifndef TURTLE_TIMER_HPP +#define TURTLE_TIMER_HPP #include <chrono> @@ -33,7 +33,7 @@ * The measured time is given by "getElapsed". * The total time measured by a timer is given by "getCumulated". * Example : - * @code bfps_timer tm; // Implicit start + * @code turtle_timer tm; // Implicit start * @code ... * @code tm.stop(); // stop the timer * @code tm.getElapsed(); // return the duration in s [A] @@ -43,7 +43,7 @@ * [B] * @code tm.getCumulated(); // Equal [A] + [B] */ -class bfps_timer { +class turtle_timer { using double_second_time = std::chrono::duration<double, std::ratio<1, 1>>; std::chrono::high_resolution_clock::time_point @@ -53,16 +53,16 @@ class bfps_timer { public: /// Constructor - bfps_timer() : m_cumulate(std::chrono::nanoseconds::zero()) { start(); } + turtle_timer() : m_cumulate(std::chrono::nanoseconds::zero()) { start(); } /// Copy constructor - bfps_timer(const bfps_timer& other) = delete; + turtle_timer(const turtle_timer& other) = delete; /// Copies an other timer - bfps_timer& operator=(const bfps_timer& other) = delete; + turtle_timer& operator=(const turtle_timer& other) = delete; /// Move constructor - bfps_timer(bfps_timer&& other) = delete; + turtle_timer(turtle_timer&& other) = delete; /// Copies an other timer - bfps_timer& operator=(bfps_timer&& other) = delete; + turtle_timer& operator=(turtle_timer&& other) = delete; /** Rest all the values, and apply start */ void reset() { @@ -101,4 +101,4 @@ public: } }; -#endif +#endif//TURTLE_TIMER_HPP diff --git a/cpp/scope_timer.cpp b/cpp/scope_timer.cpp index 61ddd895..2e10f9a8 100644 --- a/cpp/scope_timer.cpp +++ b/cpp/scope_timer.cpp @@ -4,5 +4,5 @@ #ifdef USE_TIMINGOUTPUT -EventManager global_timer_manager("BFPS", std::cout); +EventManager global_timer_manager("TurTLE", std::cout); #endif diff --git a/cpp/scope_timer.hpp b/cpp/scope_timer.hpp index 82673ed3..9e822e65 100644 --- a/cpp/scope_timer.hpp +++ b/cpp/scope_timer.hpp @@ -42,7 +42,7 @@ #include <fstream> #include "base.hpp" -#include "bfps_timer.hpp" +#include "turtle_timer.hpp" //< To add it as friend of EventManager class ScopeEvent; @@ -737,7 +737,7 @@ protected: //< The core event EventManager::CoreEvent* m_event; //< Time to get elapsed time - bfps_timer m_timer; + turtle_timer m_timer; //< Is true if it has been created for task bool m_isTask; -- GitLab