timeval

Contains BSD time information.

Service:Time

Syntax

  #include <sys/timeval.h>
  
  struct timeval
  {
     long   tv_sec; 
     long   tv_usec; 
  };
  

Fields

tv_sec

Contains the whole number of seconds since January 1, 1970.

tv_usec

Contains the fraction of a second as a whole number of microseconds.