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 <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:15
std::chrono::steady_clock::time_point m_start
Definition Timer.hpp:16
◆ ~Timer()
| Slic3r::Timer::~Timer |
( |
| ) |
|
name describe timer
9{
10 BOOST_LOG_TRIVIAL(debug) <<
"Timer '" <<
m_name <<
"' spend " <<
11 duration_cast<milliseconds>(steady_clock::now() -
m_start).count() <<
"ms";
12}
◆ 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: