Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::Timing::Timer Class Reference

#include <src/libslic3r/Timer.hpp>

Public Member Functions

void start ()
 
uint64_t elapsed_nanoseconds () const
 
uint64_t elapsed_microseconds () const
 
unsigned int elapsed_milliseconds () const
 
double elapsed_seconds () const
 

Private Attributes

uint64_t m_nanoseconds = 0
 

Detailed Description

Member Function Documentation

◆ elapsed_microseconds()

uint64_t Slic3r::Timing::Timer::elapsed_microseconds ( ) const
inline
46 {
47 return elapsed_nanoseconds() / 1000;
48 }
uint64_t elapsed_nanoseconds() const
Definition Timer.hpp:43

References elapsed_nanoseconds().

Referenced by elapsed_milliseconds(), and elapsed_seconds().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ elapsed_milliseconds()

unsigned int Slic3r::Timing::Timer::elapsed_milliseconds ( ) const
inline
49 {
50 return static_cast<unsigned int>(elapsed_microseconds()/1000);
51 }
uint64_t elapsed_microseconds() const
Definition Timer.hpp:46

References elapsed_microseconds().

+ Here is the call graph for this function:

◆ elapsed_nanoseconds()

uint64_t Slic3r::Timing::Timer::elapsed_nanoseconds ( ) const
inline
43 {
45 }
uint64_t m_nanoseconds
Definition Timer.hpp:56
static uint64_t nanoseconds_since_epoch()
Definition Timer.hpp:33

References m_nanoseconds, and Slic3r::Timing::nanoseconds_since_epoch().

Referenced by Slic3r::Timing::TimeLimitAlarm::~TimeLimitAlarm(), and elapsed_microseconds().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ elapsed_seconds()

double Slic3r::Timing::Timer::elapsed_seconds ( ) const
inline
52 {
53 return elapsed_microseconds() / 1000000.0;
54 }

References elapsed_microseconds().

Referenced by Slic3r::Timing::TimeLimitAlarm::report_time_exceeded().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ start()

void Slic3r::Timing::Timer::start ( )
inline

References m_nanoseconds, and Slic3r::Timing::nanoseconds_since_epoch().

Referenced by Slic3r::Timing::TimeLimitAlarm::TimeLimitAlarm().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_nanoseconds

uint64_t Slic3r::Timing::Timer::m_nanoseconds = 0
private

Referenced by elapsed_nanoseconds(), and start().


The documentation for this class was generated from the following file: