1 .\" $NetBSD: microuptime.9,v 1.7 2008/11/26 18:40:22 wiz Exp $
3 .\" Copyright (c) 2000 Kelly Yancey
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" $FreeBSD: src/share/man/man9/microuptime.9,v 1.7 2005/01/12 21:48:25 ru Exp $
39 .Nd get the time elapsed since boot
43 .Fn binuptime "struct bintime *bt"
45 .Fn getbinuptime "struct bintime *bt"
47 .Fn microuptime "struct timeval *tv"
49 .Fn getmicrouptime "struct timeval *tv"
51 .Fn nanouptime "struct timespec *ts"
53 .Fn getnanouptime "struct timespec *tsp"
59 functions store the time elapsed since boot as a
61 at the address specified by
67 functions perform the same utility, but record the elapsed time as a
74 functions store the elapsed time as a
75 .Vt "struct timespec" .
83 always query the timecounter to return the current time as precisely as
90 functions are abstractions which return a less precise, but
91 faster to obtain, time.
98 functions is to enforce the user's preference for timer accuracy versus
100 They should be used where a precision of
106 is acceptable or where performance is priority.
118 This manual page was written by
119 .An Kelly Yancey Aq kbyanc@posi.net .