timeutils.hh
来自「COPE the first practical network coding 」· HH 代码 · 共 35 行
HH
35 行
/* * timeutils.hh * File created by Douglas S. J. De Couto * 15 November 2001 */#ifndef TIMEUTIL_H#define TIMEUTIL_H#ifdef CLICK_USERLEVEL#include <math.h>#endif#include <click/string.hh>#include <click/glue.hh> /* for htonl() and ntohl() */CLICK_DECLSinline timevalhton(const timeval &tv) { struct timeval tv2; tv2.tv_sec = htonl(tv.tv_sec); tv2.tv_usec = htonl(tv.tv_usec); return tv2;}inline timevalntoh(const timeval &tv) { struct timeval tv2; tv2.tv_sec = ntohl(tv.tv_sec); tv2.tv_usec = ntohl(tv.tv_usec); return tv2;}CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?