wpl::tool::microseconds Struct Reference

Represent an arbitrary number of microseconds. More...

#include <wipal/tool/microseconds.hh>

List of all members.

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)

Detailed Description

Represent an arbitrary number of microseconds.


Member Function Documentation

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.


The documentation for this struct was generated from the following files:

Generated by  doxygen 1.6.2