taia_now.c

来自「daemontools-0.76.tar.gz是在linux环境下自动监控进程的」· C语言 代码 · 共 16 行

C
16
字号
/* Public domain. */#include <sys/types.h>#include <time.h>#include <sys/time.h>#include "taia.h"void taia_now(struct taia *t){  struct timeval now;  gettimeofday(&now,(struct timezone *) 0);  tai_unix(&t->sec,now.tv_sec);  t->nano = 1000 * now.tv_usec + 500;  t->atto = 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?