Skip to content

Timespec

hfuj13 edited this page Feb 24, 2017 · 11 revisions

Timespec is a wrapper class of "struct timespec".

APIs

Timespec()

default constrctor.

Timespec(uint32_t msec)

constructor that the milliseconds specify.

  • [in] msec: milliseconds or TIMEOUT_NOSPEC. (e.g. 3000)

const struct timespec* ptr()

get the pointer of "struct timespec".

  • return: the const pointer of "struct timespec"

std::string to_string()

transform object to string representation.

  • return "struct timespec" string representation. (e.g. {10, 200} or NOSPEC etc)
Clone this wiki locally