*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> microtime (9)              
Title
Content
Arch
Section
 

MICROTIME(9)

Contents


NAME    [Toc]    [Back]

     microtime, getmicrotime, nanotime, getnanotime -- get the current time

SYNOPSIS    [Toc]    [Back]

     #include <sys/time.h>

     void
     microtime(struct timeval *tv);

     void
     getmicrotime(struct timeval *tv);

     void
     nanotime(struct timespec *ts);

     void
     getnanotime(struct timespec *tsp);

DESCRIPTION    [Toc]    [Back]

     The microtime() and getmicrotime() functions store the system time as a
     struct timeval at the address specified by tv.  The nanotime() and
     getnanotime() functions perform the same utility, but record the time as
     a struct timespec instead.

     Microtime() and nanotime() always query the timecounter to return the
     current time as precisely as possible.  Whereas getmicrotime() and
     getnanotime() functions are abstractions which return a less precise, but
     faster to obtain, time.

     The intent of the getmicrotime() and getnanotime() functions is to
     enforce the user's preference for timer accuracy versus execution time.

SEE ALSO    [Toc]    [Back]

      
      
     getmicrouptime(9), getnanouptime(9), microuptime(9), nanouptime(9),
     tvtohz(9)

HISTORY    [Toc]    [Back]

     The microtime and nanotime functions first appeared in FreeBSD 3.0 but
     existed in other incarnations since 4.4BSD

AUTHORS    [Toc]    [Back]

     This manual page was written by Kelly Yancey <kbyanc@posi.net>.


FreeBSD 5.2.1			January 3, 2000 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
adjkerntz FreeBSD adjust local time CMOS clock to reflect time zone changes and keep current timezone offset for the k...
clock IRIX Returns the current time
DTsetdate IRIX set a date pack to the current time
create_link HP-UX Creates a soft link and optionally specifies an expiration time and an extension time
vxfs_ifree_timelag HP-UX VxFS inode free time lag (specifies the minimum time to be spent on a freelist)
gettimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
TIMEVAL64TO32 Tru64 Gets and sets date and time and converts time between timeval and timeval64
ftime Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday Tru64 Gets and sets date and time and converts time between timeval and timeval64
settimeofday64 Tru64 Gets and sets date and time and converts time between timeval and timeval64
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service