📄 setcyclecount.hh
字号:
#ifndef SETCYCLECOUNT_HH#define SETCYCLECOUNT_HH/* * =c * SetCycleCount() * =s profiling * 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 *processing() const { return AGNOSTIC; } void push(int, Packet *p); Packet *pull(int);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -