|
libzypp
9.1.2
|
Times measured by Measure. More...

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. | |
| struct tms | _proc |
Process times via ::times. | |
Static Public Attributes | |
| static const long | ticks = sysconf(_SC_CLK_TCK) |
| Systems ticks per second. | |
| static struct tms | tmsEmpty |
| Empty struct tms. | |
Times measured by Measure.
Definition at line 36 of file Measure.cc.
| zypp::debug::Tm::Tm | ( | ) | [inline] |
Definition at line 38 of file Measure.cc.
| void zypp::debug::Tm::get | ( | ) | [inline] |
Definition at line 43 of file Measure.cc.
Referenced by zypp::debug::Measure::Impl::elapsed(), zypp::debug::Measure::Impl::Impl(), and zypp::debug::Measure::Impl::~Impl().
Definition at line 49 of file Measure.cc.
| std::string zypp::debug::Tm::asString | ( | ) | const [inline] |
Definition at line 60 of file Measure.cc.
References _proc, _real, asSec(), and timeStr().
Referenced by zypp::debug::operator<<().
| std::string zypp::debug::Tm::stringIf | ( | clock_t | ticks_r, |
| const std::string & | tag_r | ||
| ) | const [inline] |
Definition at line 73 of file Measure.cc.
| double zypp::debug::Tm::asSec | ( | clock_t | ticks_r | ) | const [inline] |
Definition at line 84 of file Measure.cc.
References ticks.
Referenced by asString(), and stringIf().
| std::string zypp::debug::Tm::timeStr | ( | time_t | sec_r | ) | const [inline] |
Definition at line 87 of file Measure.cc.
References zypp::str::form().
Referenced by asString(), and stringIf().
| std::string zypp::debug::Tm::timeStr | ( | double | sec_r | ) | const [inline] |
Definition at line 100 of file Measure.cc.
References zypp::str::form().
const long zypp::debug::Tm::ticks = sysconf(_SC_CLK_TCK) [static] |
struct tms zypp::debug::Tm::tmsEmpty [static] |
Empty struct tms.
Definition at line 116 of file Measure.cc.
| time_t zypp::debug::Tm::_real |
Real time via ::time.
Definition at line 118 of file Measure.cc.
Referenced by asString(), get(), and operator-().
| struct tms zypp::debug::Tm::_proc |
Process times via ::times.
Definition at line 120 of file Measure.cc.
Referenced by asString(), get(), and operator-().
1.7.6.1