All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
GpCoreTools::Chrono Class Reference

Brief description of class still missing. More...

#include <Chrono.h>

List of all members.

Public Member Functions

 Chrono ()
double elapsed ()
void start ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

{
  clock_gettime(CLOCK_REALTIME, &_t);
}

Member Function Documentation

Returns the number of seconds elapsed since last start(). If start() was not called, it returns the number of seconds since construction of this object.

Referenced by Flowmeter::addPacket(), PeerInfo::lastBeaconDelay(), Flowmeter::stopGlobal(), and Flowmeter::stopSend().

{
  timespec t;
  clock_gettime(CLOCK_REALTIME, &t);
  return (double)(t.tv_sec-_t.tv_sec)+(double)(t.tv_nsec-_t.tv_nsec)*1e-9;
}

Referenced by Flowmeter::addPacket(), PeerInfo::beaconReceived(), Flowmeter::startGlobal(), and Flowmeter::startSend().

{
  clock_gettime(CLOCK_REALTIME, &_t);
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines