OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:NANOSECONDS
(Results
1 - 2
of
2
) sorted by relevancy
/src/external/bsd/ntp/dist/include/
timespecops.h
16
* pairs of seconds and
nanoseconds
that denote the same time interval,
22
*
nanoseconds
of a timespec are signed values. IMHO, the easiest way is
23
* to use a complement representation where the
nanoseconds
are still
51
/*
nanoseconds
per second */
52
#define
NANOSECONDS
1000000000
54
/* predicate: returns TRUE if the
nanoseconds
are in nominal range */
56
((x)->tv_nsec >= 0 && (x)->tv_nsec <
NANOSECONDS
)
58
/* predicate: returns TRUE if the
nanoseconds
are out-of-bounds */
64
/* make sure
nanoseconds
are in nominal range */
/src/external/bsd/ntp/dist/libntp/
timespecops.c
22
/*
nanoseconds
per second */
23
#define
NANOSECONDS
1000000000
25
/* conversion between l_fp fractions and
nanoseconds
*/
29
(((u_int64)(tsf) *
NANOSECONDS
+ 0x80000000) >> 32))
32
((((u_int64)(tvu) << 32) +
NANOSECONDS
/ 2) / \
33
NANOSECONDS
))
35
# define NSECFRAC (FRAC /
NANOSECONDS
)
44
/* make sure
nanoseconds
are in nominal range */
57
* fast enough; so we do a division of the
nanoseconds
in that
63
if (x.tv_nsec < -3l *
NANOSECONDS
||
[
all
...]
Completed in 18 milliseconds
Indexes created Sat May 02 00:23:24 UTC 2026