sys/time.h /* * Structure returned by gettimeofday(2) system call, * and used in other calls. */ struct timeval { long tv_sec; /* seconds */ long tv_usec; /* and microseconds */ };
/* * Structure defined by POSIX.1b to be like a timeval. */ struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */ }; On Wed, Jul 30, 2008 at 8:34 PM, Constantine A. Murenin <[EMAIL PROTECTED]> wrote: > On 30/07/2008, Michael Knudsen <[EMAIL PROTECTED]> wrote: >> CVSROOT: /cvs >> Module name: src >> Changes by: [EMAIL PROTECTED] 2008/07/30 13:41:32 >> >> Modified files: >> share/man/man9 : timeout.9 >> >> Log message: >> In the .Fn entries for timeout_add_usec/nsec, don't call the parameter >> ``sec''. Instead, use usec/nsec. >> >> Agreed with/no opposition from blambert. > > Shouldn't these functions be named timeout_add_{s,us,ns}? The SI unit > for second is s, microsecond/nanosecond is us/ns, and these are widely > used in other tools like traceroute and systat sensors display. Why > deviate with non-standard half-abbreviations? > > br, > cnst.su. > > -- GDB has a 'break' feature; why doesn't it have 'fix' too?