会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
帅胡
2017年12月6日
linux高精度struct timespec 和 struct timeval
摘要: 一、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 帅胡
阅读(45415)
评论(0)
推荐(2)
linux下时间有关的函数和结构体
摘要: 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 帅胡
阅读(1757)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告