libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::clock_t Class Reference

#include <clock.hpp>

Collaboration diagram for zmq::clock_t:

Public Member Functions

 clock_t ()
 
 ~clock_t ()
 
uint64_t now_ms ()
 

Static Public Member Functions

static uint64_t now_us ()
 
static uint64_t rdtsc ()
 

Private Member Functions

 clock_t (const clock_t &)
 
const clock_toperator= (const clock_t &)
 

Private Attributes

uint64_t last_time
 
uint64_t last_tsc
 

Detailed Description

Definition at line 48 of file clock.hpp.

Constructor & Destructor Documentation

zmq::clock_t::clock_t ( )

Definition at line 119 of file clock.cpp.

zmq::clock_t::~clock_t ( )

Definition at line 129 of file clock.cpp.

zmq::clock_t::clock_t ( const clock_t )
private

Member Function Documentation

uint64_t zmq::clock_t::now_us ( )
static

Definition at line 133 of file clock.cpp.

References errno_assert.

Referenced by now_ms(), zmq_stopwatch_start(), and zmq_stopwatch_stop().

Here is the caller graph for this function:

const clock_t& zmq::clock_t::operator= ( const clock_t )
private
uint64_t zmq::clock_t::rdtsc ( )
static

Definition at line 215 of file clock.cpp.

Referenced by now_ms(), and zmq::socket_base_t::process_commands().

Here is the caller graph for this function:

Member Data Documentation

uint64_t zmq::clock_t::last_time
private

Definition at line 71 of file clock.hpp.

Referenced by now_ms().

uint64_t zmq::clock_t::last_tsc
private

Definition at line 68 of file clock.hpp.

Referenced by now_ms().