dpp::utility::uptime
utility.h
uint16_t uint16_t dpp::utility::uptime::days days dpp::utility::uptime::days

Number of days.

uint8_t uint8_t dpp::utility::uptime::hours hours dpp::utility::uptime::hours

Number of hours.

uint8_t uint8_t dpp::utility::uptime::mins mins dpp::utility::uptime::mins

Number of minutes.

uint8_t uint8_t dpp::utility::uptime::secs secs dpp::utility::uptime::secs

Number of seconds.

dpp::utility::uptime::uptime
()
uptime
dpp::utility::uptime::uptime

Construct a new uptime object.

dpp::utility::uptime::uptime
(double diff)
uptime
dpp::utility::uptime::uptime
double diff

Construct a new uptime object.

diff

A time_t to initialise the object from

dpp::utility::uptime::uptime
(time_t diff)
uptime
dpp::utility::uptime::uptime
time_t diff

Construct a new uptime object.

diff

A time_t to initialise the object from

uint64_t uint64_t dpp::utility::uptime::to_msecs () const to_msecs dpp::utility::uptime::to_msecs

Get uptime as milliseconds.

uint64_t Uptime as milliseconds

uint64_t uint64_t dpp::utility::uptime::to_secs () const to_secs dpp::utility::uptime::to_secs

Get uptime as seconds.

uint64_t Uptime as seconds

std::string std::string dpp::utility::uptime::to_string () const to_string dpp::utility::uptime::to_string

Get uptime as string.

std::string Uptime as string

A class used to represent an uptime in hours, minutes, seconds and days, with helper functions to convert from time_t and display as a string.

dpp::utility::uptime
days
hours
mins
secs
uint16_t
uint8_t
- dpp::utility::uptime
  days
- dpp::utility::uptime
  hours
- dpp::utility::uptime
  mins
- dpp::utility::uptime
  secs
- dpp::utility::uptime
  to_msecs
- dpp::utility::uptime
  to_secs
- dpp::utility::uptime
  to_string
- dpp::utility::uptime
  uptime
- dpp::utility::uptime
  uptime
- dpp::utility::uptime
  uptime