getnanouptime.9freebsd

Langue: en

Version: 309974 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

binuptime getbinuptime microuptime getmicrouptime nanouptime getnanouptime - get the time elapsed since boot

SYNOPSIS

In sys/time.h Ft void Fn binuptime struct bintime *bt Ft void Fn getbinuptime struct bintime *bt Ft void Fn microuptime struct timeval *tv Ft void Fn getmicrouptime struct timeval *tv Ft void Fn nanouptime struct timespec *ts Ft void Fn getnanouptime struct timespec *tsp

DESCRIPTION

The Fn binuptime and Fn getbinuptime functions store the time elapsed since boot as a Vt struct bintime at the address specified by Fa bt . The Fn microuptime and Fn getmicrouptime functions perform the same utility, but record the elapsed time as a Vt struct timeval instead. Similarly the Fn nanouptime and Fn getnanouptime functions store the elapsed time as a Vt struct timespec .

The Fn binuptime , Fn microuptime , and Fn nanouptime functions always query the timecounter to return the current time as precisely as possible. Whereas Fn getbinuptime , Fn getmicrouptime , and Fn getnanouptime functions are abstractions which return a less precise, but faster to obtain, time.

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

SEE ALSO

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

AUTHORS

This manual page was written by An Kelly Yancey Aq kbyanc@posi.net .