#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Utils.hpp>
◆ TaskTimer()
| Slic3r::GUI::TaskTimer::TaskTimer |
( |
std::string | task_name | ) |
|
469 :
471{
472 start_timer = std::chrono::duration_cast<std::chrono::milliseconds>(
473 std::chrono::system_clock::now().time_since_epoch());
474}
std::chrono::milliseconds start_timer
Definition GUI_Utils.hpp:462
std::string task_name
Definition GUI_Utils.hpp:463
References Slic3r::empty(), start_timer, and task_name.
◆ ~TaskTimer()
| Slic3r::GUI::TaskTimer::~TaskTimer |
( |
| ) |
|
477{
478 std::chrono::milliseconds stop_timer = std::chrono::duration_cast<std::chrono::milliseconds>(
479 std::chrono::system_clock::now().time_since_epoch());
480 auto process_duration = std::chrono::milliseconds(stop_timer -
start_timer).count();
481 std::string out = (boost::format(
"\n!!! %1% duration = %2% ms \n\n") %
task_name % process_duration).str();
482 printf("%s", out.c_str());
483#ifdef __WXMSW__
484 std::wstring stemp = std::wstring(out.begin(), out.end());
485 OutputDebugString(stemp.c_str());
486#endif
487}
References start_timer, and task_name.
◆ start_timer
| std::chrono::milliseconds Slic3r::GUI::TaskTimer::start_timer |
|
private |
◆ task_name
| std::string Slic3r::GUI::TaskTimer::task_name |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Utils.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/GUI_Utils.cpp