Confdump Agent
1.4.0
|
System uptime information. More...
#include <Uptime.hpp>
Public Member Functions | |
Uptime () | |
Uptime (quint64 millisecondsUptime) | |
virtual | ~Uptime () |
quint64 | millisecondsUptime () const |
Static Public Member Functions | |
static Result | uptime (boost::shared_ptr< LinuxDumper > driver) |
Returns an empty Result (parsing error) or containing a single instance. | |
Properties | |
quint64 | millisecondsUptime |
Private Attributes | |
quint64 | millisecondsUptime_ |
System uptime information.
The /proc/uptime format is currently "uptime idle", each of these numbers being a decimal of 32/64b + 2 digits precision (struct timespec), in seconds. We store it as a 64b integer value in milliseconds, which can hold 584542046 years of uptime.
Definition at line 48 of file Uptime.hpp.
Referenced by uptime().
Confdump::System::Linux::Uptime::Uptime | ( | quint64 | millisecondsUptime | ) |
Definition at line 32 of file Uptime.cpp.
Confdump::System::Linux::Uptime::~Uptime | ( | ) | [virtual] |
Definition at line 37 of file Uptime.cpp.
quint64 Confdump::System::Linux::Uptime::millisecondsUptime | ( | ) | const [inline] |
Definition at line 61 of file Uptime.hpp.
References millisecondsUptime_.
Result Confdump::System::Linux::Uptime::uptime | ( | boost::shared_ptr< LinuxDumper > | driver | ) | [static] |
Returns an empty Result (parsing error) or containing a single instance.
Definition at line 44 of file Uptime.cpp.
References Confdump::Result::push_back(), and Uptime().
Referenced by Confdump::System::LinuxDumper::LinuxDumper().
quint64 Confdump::System::Linux::Uptime::millisecondsUptime_ [private] |
Definition at line 64 of file Uptime.hpp.
Referenced by millisecondsUptime().
quint64 Confdump::System::Linux::Uptime::millisecondsUptime [read] |
Definition at line 51 of file Uptime.hpp.