![]() |
Prusa Slicer 2.6.0
|
#include <src/libnest2d/tools/benchmark.h>
Public Member Functions | |
| void | start () |
| void | stop () |
| double | getElapsedSec () |
Private Types | |
| typedef std::chrono::high_resolution_clock | Clock |
| typedef Clock::duration | Duration |
| typedef Clock::time_point | TimePoint |
Private Member Functions | |
| double | to_sec (Duration d) |
Private Attributes | |
| TimePoint | t1 |
| TimePoint | t2 |
| Duration | d |
A class for doing benchmarks.
|
private |
|
private |
|
private |
|
inline |
Get the time elapsed between a start() end a stop() call.
References d, t1, t2, and to_sec().
Referenced by Slic3r::sla::create_support_tree(), Slic3r::SLAPrint::Steps::generate_preview(), and Slic3r::SLAPrint::process().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Measure time from the moment of this call.
References t1.
Referenced by Slic3r::sla::create_support_tree(), Slic3r::SLAPrint::Steps::generate_preview(), and Slic3r::SLAPrint::process().
Here is the caller graph for this function:
|
inline |
Measure time to the moment of this call.
References t2.
Referenced by Slic3r::sla::create_support_tree(), Slic3r::SLAPrint::Steps::generate_preview(), and Slic3r::SLAPrint::process().
Here is the caller graph for this function:
|
inlineprivate |
|
private |
Referenced by getElapsedSec(), and to_sec().
|
private |
Referenced by getElapsedSec(), and start().
|
private |
Referenced by getElapsedSec(), and stop().