time.c
来自「linux下traceroute的实现」· C语言 代码 · 共 28 行
C
28 行
/* Copyright (c) 2006, 2007 Dmitry Butskoy <buc@citadel.stu.neva.ru> License: GPL v2 or any later See COPYING for the status of this software.*/#include <stdlib.h>#include <unistd.h>#include <sys/time.h>#include "traceroute.h"/* Just returns current time as double, with most possible precision... */double get_time (void) { struct timeval tv; double d; gettimeofday (&tv, NULL); d = ((double) tv.tv_usec) / 1000000. + (unsigned long) tv.tv_sec; return d;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?