linux学习笔记6-set of time&timer&time.h

资源和工具

  • http://blog.csdn.net/pbymw8iwm/article/details/7967368

linux和C库中time.h中重要的数据结构

struct timeval    
{    
  __time_t tv_sec;        /* Seconds. */    
  __suseconds_t tv_usec;  /* Microseconds. */    
}; 
struct  timezone
{
  int  tz_minuteswest; 
  int  tz_dsttime;         
}
struct  tm{  
  int tm_sec;  
  int tm_min;  
  int tm_hour;  
  int tm_mday;  
  int tm_mon;  
  int tm_year;  
  int tm_wday;  
  int tm_yday;  
  int tm_isdst;  
};

你可能感兴趣的:(linux学习笔记6-set of time&timer&time.h)