time value in increments less than a second...

Michael H. Warfield mhw at WittsEnd.com
Tue Jul 11 21:03:27 UTC 2006


On Tue, 2006-07-11 at 16:55 -0400, Ric Moore wrote:
> What is built in to Linux, as a function to handle small increments of
> time less than a second. This may be OT, but my cousin was asking me and
> I know I've seen reference to micro-seconds of time as some kind of
> function. Would anyone please toss me something he might explore??
> Thanx, Ric

	man gettimeofday

====
       The functions gettimeofday() and settimeofday() can  get  and  set  the
       time  as  well  as a timezone.  The tv argument is a struct timeval (as
       specified  in <sys/time.h>):

       struct timeval {
               time_t         tv_sec;        /* seconds */
               suseconds_t    tv_usec;  /* microseconds */
       };
====

	Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060711/6b750e57/attachment-0001.sig>


More information about the fedora-list mailing list