From c078ee5a0b0a04e7ff44206bd789a104767241fd Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Thu, 15 Jul 2021 11:02:17 -0400 Subject: [PATCH] Timer class has been moved --- src/teqp_profile.cpp | 12 ------------ src/test_variant.cpp | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/src/teqp_profile.cpp b/src/teqp_profile.cpp index 8ac4321..be3f844 100644 --- a/src/teqp_profile.cpp +++ b/src/teqp_profile.cpp @@ -14,18 +14,6 @@ #include <Eigen/Dense> #include "teqp/derivs.hpp" -class Timer { -private: - int N; - decltype(std::chrono::steady_clock::now()) tic; -public: - Timer(int N) : N(N), tic(std::chrono::steady_clock::now()) {} - ~Timer() { - auto elap = std::chrono::duration<double>(std::chrono::steady_clock::now() - tic).count(); - std::cout << elap / N * 1e6 << " us/call" << std::endl; - } -}; - template <typename ModelContainer, typename T1, typename T2, typename T3> auto get_f(const ModelContainer& modcon, const T1& x1, const T2& x2, const T3& x3) { // Call the function with T, rho, molefrac arguments diff --git a/src/test_variant.cpp b/src/test_variant.cpp index bb55749..3a5e8d3 100644 --- a/src/test_variant.cpp +++ b/src/test_variant.cpp @@ -15,18 +15,6 @@ #include "teqp/containers.hpp" #include <Eigen/Dense> -class Timer { -private: - int N; - decltype(std::chrono::steady_clock::now()) tic; -public: - Timer(int N) : N(N), tic(std::chrono::steady_clock::now()){} - ~Timer() { - auto elap = std::chrono::duration<double>(std::chrono::steady_clock::now()-tic).count(); - std::cout << elap/N*1e6 << " us/call" << std::endl; - } -}; - template <typename ModelContainer, typename T1, typename T2, typename T3> auto get_f(const ModelContainer &modcon, const T1& x1, const T2& x2, const T3& x3){ // The output type is the type promotion of T, rho, and molefrac -- GitLab