Times measured by Measure.
More...
List of all members.
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.
|
Detailed Description
Times measured by Measure.
Definition at line 36 of file Measure.cc.
Constructor & Destructor Documentation
Member Function Documentation
void zypp::debug::Tm::get |
( |
| ) |
|
|
inline |
Tm zypp::debug::Tm::operator- |
( |
const Tm & |
rhs | ) |
const |
|
inline |
std::string zypp::debug::Tm::asString |
( |
| ) |
const |
|
inline |
std::string zypp::debug::Tm::stringIf |
( |
clock_t |
ticks_r, |
|
|
const std::string & |
tag_r |
|
) |
| const |
|
inline |
double zypp::debug::Tm::asSec |
( |
clock_t |
ticks_r | ) |
const |
|
inline |
std::string zypp::debug::Tm::timeStr |
( |
time_t |
sec_r | ) |
const |
|
inline |
std::string zypp::debug::Tm::timeStr |
( |
double |
sec_r | ) |
const |
|
inline |
Member Data Documentation
const long zypp::debug::Tm::ticks = sysconf(_SC_CLK_TCK) |
|
static |
Systems ticks per second.
Definition at line 114 of file Measure.cc.
struct tms zypp::debug::Tm::tmsEmpty |
|
static |
time_t zypp::debug::Tm::_real |
struct tms zypp::debug::Tm::_proc |
Process times via ::times
.
Definition at line 120 of file Measure.cc.
The documentation for this struct was generated from the following file: