diff --git a/src/utils.cc b/src/utils.cc index 3ecfe38..6411f63 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -110,7 +110,7 @@ namespace Heck { time_last_exec_ = time_now; if (callback_) { //todo: constexpr if metrics - callback_(); + callback_(time_now); } return true; } diff --git a/src/utils.hh b/src/utils.hh index 953b6eb..efa5f99 100644 --- a/src/utils.hh +++ b/src/utils.hh @@ -54,7 +54,7 @@ namespace Heck { } private: - static inline T val_current_{}; + T val_current_{}; }; } // namespace Heck -#endif // HECK_DAISY_UTILS_HH \ No newline at end of file +#endif // HECK_DAISY_UTILS_HH` \ No newline at end of file