OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::_BBS_Backup_Manager::timer Struct Reference

Public Member Functions

 timer (char const *msg)
 ~timer ()

Public Attributes

char const * msg
boost::posix_time::ptime start

Detailed Description

Constructor & Destructor Documentation

◆ timer()

Slic3r::_BBS_Backup_Manager::timer::timer ( char const * msg)
inline
9364: msg(msg), start(boost::posix_time::microsec_clock::universal_time()) { }
char const * msg
Definition bbs_3mf.cpp:9376
boost::posix_time::ptime start
Definition bbs_3mf.cpp:9377

References msg, and start.

◆ ~timer()

Slic3r::_BBS_Backup_Manager::timer::~timer ( )
inline
9365 {
9366#ifdef __WIN32__
9367 auto end = boost::posix_time::microsec_clock::universal_time();
9368 int duration = (int)(end - start).total_milliseconds();
9369 char buf[20];
9370 OutputDebugStringA(msg);
9371 OutputDebugStringA(": ");
9372 OutputDebugStringA(itoa(duration, buf, 10));
9373 OutputDebugStringA("\n");
9374#endif
9375 }
T * end(Slic3r::Mat< N, M, T > &mat)
Definition Point.hpp:841

References msg, and start.

Member Data Documentation

◆ msg

char const* Slic3r::_BBS_Backup_Manager::timer::msg

Referenced by timer(), and ~timer().

◆ start

boost::posix_time::ptime Slic3r::_BBS_Backup_Manager::timer::start

Referenced by timer(), and ~timer().


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Format/bbs_3mf.cpp