libzypp 17.31.0
zypp::debug::Tm Struct Reference

Times measured by Measure. More...

Inheritance diagram for zypp::debug::Tm:

Public Member Functions

 Tm ()
void get ()
Tm operator- (const Tm &rhs) const
std::string asString () const
std::string stringIf (clock_t ticks_r, const std::string &tag_r) const
double asSec (clock_t ticks_r) const
std::string timeStr (time_t sec_r) const
std::string timeStr (double sec_r) const

Public Attributes

time_t _real
 Real time via ::time. More...
struct tms _proc
 Process times via ::times. More...

Static Public Attributes

static const long ticks = sysconf(_SC_CLK_TCK)
 Systems ticks per second. More...
static const struct tms tmsEmpty
 Empty struct tms. More...

Detailed Description

Times measured by Measure.

Definition at line 36 of file

Constructor & Destructor Documentation

◆ Tm()

zypp::debug::Tm::Tm ( )

Definition at line 38 of file

Member Function Documentation

◆ get()

void zypp::debug::Tm::get ( )

Definition at line 43 of file

◆ operator-()

Tm zypp::debug::Tm::operator- ( const Tm rhs) const

Definition at line 49 of file

◆ asString()

std::string zypp::debug::Tm::asString ( ) const

Definition at line 60 of file

◆ stringIf()

std::string zypp::debug::Tm::stringIf ( clock_t  ticks_r,
const std::string &  tag_r 
) const

Definition at line 73 of file

◆ asSec()

double zypp::debug::Tm::asSec ( clock_t  ticks_r) const

Definition at line 84 of file

◆ timeStr() [1/2]

std::string zypp::debug::Tm::timeStr ( time_t  sec_r) const

Definition at line 87 of file

◆ timeStr() [2/2]

std::string zypp::debug::Tm::timeStr ( double  sec_r) const

Definition at line 100 of file

Member Data Documentation

◆ ticks

const long zypp::debug::Tm::ticks = sysconf(_SC_CLK_TCK)

Systems ticks per second.

Definition at line 114 of file

◆ tmsEmpty

const struct tms zypp::debug::Tm::tmsEmpty

Empty struct tms.

Definition at line 116 of file

◆ _real

time_t zypp::debug::Tm::_real

Real time via ::time.

Definition at line 118 of file

◆ _proc

struct tms zypp::debug::Tm::_proc

Process times via ::times.

Definition at line 120 of file

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