⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timeutils.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
/* * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -