Instance of this class is used for measure time consumtion of block code until instance is alive and write result to debug output.
More...
#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Timer.hpp>
|
| | Timer (const std::string &name) |
| | name describe timer
|
| | ~Timer () |
| | name describe timer
|
Instance of this class is used for measure time consumtion of block code until instance is alive and write result to debug output.
◆ Timer()
| Slic3r::Timer::Timer |
( |
const std::string & | name | ) |
|
name describe timer
- Parameters
-
| name | Describe timer in consol log |
std::string m_name
Definition Timer.hpp:17
std::chrono::steady_clock::time_point m_start
Definition Timer.hpp:18
References m_name, and m_start.
◆ ~Timer()
| Slic3r::Timer::~Timer |
( |
| ) |
|
name describe timer
11{
12 BOOST_LOG_TRIVIAL(debug) <<
"Timer '" <<
m_name <<
"' spend " <<
13 duration_cast<milliseconds>(steady_clock::now() -
m_start).count() <<
"ms";
14}
References m_name, and m_start.
◆ m_name
| std::string Slic3r::Timer::m_name |
|
private |
◆ m_start
| std::chrono::steady_clock::time_point Slic3r::Timer::m_start |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Timer.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Timer.cpp