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

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

MICROUPTIME(9)

Contents


NAME    [Toc]    [Back]

     microuptime, getmicrouptime, nanouptime, getnanouptime -- get the time
     elapsed since boot

SYNOPSIS    [Toc]    [Back]

     #include <sys/time.h>

     void
     microuptime(struct timeval *tv);

     void
     getmicrouptime(struct timeval *tv);

     void
     nanouptime(struct timespec *ts);

     void
     getnanouptime(struct timespec *tsp);

DESCRIPTION    [Toc]    [Back]

     The microuptime() and getmicrouptime() functions store the time elapsed
     since boot as a struct timeval at the address specified by tv.  The
     nanouptime() and getnanouptime() functions perform the same utility, but
     record the elapsed time as a struct timespec instead.

     Microuptime() and nanouptime() always query the timecounter to return the
     current time as precisely as possible.  Whereas getmicrouptime() and
     getnanouptime() functions are abstractions which return a less precise,
     but faster to obtain, time.

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

SEE ALSO    [Toc]    [Back]

      
      
     getmicrotime(9), getnanotime(9), microtime(9), nanotime(9), tvtohz(9)

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
secondr IRIX Returns elapsed wall-clock time in seconds
timef IRIX Returns elapsed wall-clock time in milliseconds since the previous call to TIMEF
rcS Linux defaults used at boot time
modules Linux kernel modules to load at boot time
sema HP-UX enable or disable System V IPC semaphores at boot time
mesg HP-UX enable or disable System V IPC messages at boot time
bootparam Linux Introduction to boot time parameters of the Linux kernel
install-keymap Linux expand a given keymap and install it as boot-time keymap
reboot HP-UX boot the system
bootparams OpenBSD boot parameter database
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service