2017年12月6日

摘要: 一、struct timespec 定义: typedef long time_t;#ifndef _TIMESPEC#define _TIMESPECstruct timespec {time_t tv_sec; // seconds long tv_nsec; // and nanosecond 阅读全文
posted @ 2017-12-06 08:55 帅胡 阅读(44233) 评论(0) 推荐(2) 编辑
摘要: 1、时间类型。Linux下常用的时间类型有6个:time_t,struct timeb, struct timeval,struct timespec,clock_t, struct tm. (1) time_t是一个长整型,一般用来表示用1970年以来的秒数. 该类型定义在<sys/time.h> 阅读全文
posted @ 2017-12-06 08:52 帅胡 阅读(1660) 评论(0) 推荐(0) 编辑

导航