Skip to content

Commit

Permalink
removed inline
Browse files Browse the repository at this point in the history
  • Loading branch information
teseoch committed Oct 4, 2023
1 parent f800a23 commit e9d492c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/polysolve/nonlinear/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ namespace polysolve::nonlinear
stop();
}

inline void StopWatch::start()
void StopWatch::start()
{
is_running = true;
m_start = clock::now();
}

inline void StopWatch::stop()
void StopWatch::stop()
{
if (!is_running)
return;
Expand All @@ -68,12 +68,12 @@ namespace polysolve::nonlinear
++(*m_count);
}

inline double StopWatch::getElapsedTimeInSec()
double StopWatch::getElapsedTimeInSec()
{
return std::chrono::duration<double>(m_stop - m_start).count();
}

inline void StopWatch::log_msg()
void StopWatch::log_msg()
{
const static std::string log_fmt_text =
fmt::format("[{}] {{}} {{:.3g}}s", fmt::format(fmt::fg(fmt::terminal_color::magenta), "timing"));
Expand Down

0 comments on commit e9d492c

Please sign in to comment.