#ifndef SETCYCLECOUNT_HH
#define SETCYCLECOUNT_HH
/*
* =c
* SetCycleCount()
* =s counters
* stores cycle count in annotation
* =d
*
* Stores the current cycle count in an annotation in each packet. In
* combination with CycleCountAccum, this lets you measure how many cycles it
* takes a packet to pass from one point to another.
*
* =n
*
* A packet has room for either exactly one cycle count or exactly one
* performance metric.
*
* =a CycleCountAccum, RoundTripCycleCount, SetPerfCount, PerfCountAccum */
#include <click/element.hh>
class SetCycleCount : public Element { public:
SetCycleCount();
~SetCycleCount();
const char *class_name() const { return "SetCycleCount"; }
const char *port_count() const { return PORTS_1_1; }
const char *processing() const { return AGNOSTIC; }
void push(int, Packet *p);
Packet *pull(int);
};
#endif
syntax highlighted by Code2HTML, v. 0.9.1