OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::Timing::Timer Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/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
48 {
49 return elapsed_nanoseconds() / 1000;
50 }
uint64_t elapsed_nanoseconds() const
Definition Timer.hpp:45

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
51 {
52 return static_cast<unsigned int>(elapsed_microseconds()/1000);
53 }
uint64_t elapsed_microseconds() const
Definition Timer.hpp:48

References elapsed_microseconds().

Here is the call graph for this function:

◆ elapsed_nanoseconds()

uint64_t Slic3r::Timing::Timer::elapsed_nanoseconds ( ) const
inline
45 {
47 }
uint64_t m_nanoseconds
Definition Timer.hpp:58
static uint64_t nanoseconds_since_epoch()
Definition Timer.hpp:35

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

Referenced by 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
54 {
55 return elapsed_microseconds() / 1000000.0;
56 }

References elapsed_microseconds().

Here is the call graph for this function:

◆ start()

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

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

Here is the call 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:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/Timer.hpp