Represent an arbitrary number of microseconds. More...
#include <wipal/tool/microseconds.hh>
Public Types | |
typedef mpz_class | mpz_type |
Public Member Functions | |
microseconds (const uint64_t) | |
microseconds (const struct timeval &tv) | |
uint32_t | get_prism_mactime () const |
uint32_t | get_prism_hosttime () const |
uint64_t | get_uint64 () const |
unsigned | get_div_by (unsigned d) const |
struct timeval | get_timeval () const |
Interaction with GMP | |
microseconds (const mpz_type &) | |
template<class T1 , class T2 > | |
microseconds (const __gmp_expr< T1, T2 > &e) |
Represent an arbitrary number of microseconds.
unsigned wpl::tool::microseconds::get_div_by | ( | unsigned | d | ) | const [inline] |
Divide the microsecond count by d
and return the result.
A negative microsecond count or a result that does not fit into an unsigned long yields undefined behavior.