Home
last modified time | relevance | path

Searched refs:NS_PER_S (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/ntp/libntp/lib/isc/unix/
H A Dtime.c38 #define NS_PER_S 1000000000 /*%< Nanoseconds per second. */ macro
91 REQUIRE(nanoseconds < NS_PER_S); in isc_interval_set()
100 INSIST(i->nanoseconds < NS_PER_S); in isc_interval_iszero()
119 REQUIRE(nanoseconds < NS_PER_S); in isc_time_set()
136 INSIST(t->nanoseconds < NS_PER_S); in isc_time_isepoch()
194 INSIST(i->nanoseconds < NS_PER_S); in isc_time_nowplusinterval()
230 if (t->nanoseconds >= NS_PER_S) { in isc_time_nowplusinterval()
232 t->nanoseconds -= NS_PER_S; in isc_time_nowplusinterval()
241 INSIST(t1->nanoseconds < NS_PER_S && t2->nanoseconds < NS_PER_S); in isc_time_compare()
258 INSIST(t->nanoseconds < NS_PER_S && i->nanoseconds < NS_PER_S); in isc_time_add()
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/win32/
H A Dtime.c41 #define NS_PER_S 1000000000 macro
43 #define INTERVALS_PER_S (NS_PER_S / NS_INTERVAL)
65 REQUIRE(nanoseconds < NS_PER_S); in isc_interval_set()
90 REQUIRE(nanoseconds < NS_PER_S); in isc_time_set()