Home
last modified time | relevance | path

Searched refs:accuracy (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/test/
Dtest-time-util.c191 static void test_format_timespan_one(usec_t x, usec_t accuracy) { in test_format_timespan_one() argument
196 log_debug(USEC_FMT" (at accuracy "USEC_FMT")", x, accuracy); in test_format_timespan_one()
198 assert_se(t = format_timespan(l, sizeof l, x, accuracy)); in test_format_timespan_one()
204 if (accuracy <= 0) in test_format_timespan_one()
205 accuracy = 1; in test_format_timespan_one()
207 assert_se(x / accuracy == y / accuracy); in test_format_timespan_one()
210 static void test_format_timespan_accuracy(usec_t accuracy) { in test_format_timespan_accuracy() argument
211 log_info("/* %s accuracy="USEC_FMT" */", __func__, accuracy); in test_format_timespan_accuracy()
213 test_format_timespan_one(0, accuracy); in test_format_timespan_accuracy()
214 test_format_timespan_one(1, accuracy); in test_format_timespan_accuracy()
[all …]
/systemd-251/src/libsystemd/sd-event/
Devent-util.c16 uint64_t accuracy, in event_reset_time() argument
56 r = sd_event_source_set_time_accuracy(*s, accuracy); in event_reset_time()
68 r = sd_event_add_time(e, s, clock, usec, accuracy, callback, userdata); in event_reset_time()
93 uint64_t accuracy, in event_reset_time_relative() argument
109 …return event_reset_time(e, s, clock, usec_add(usec_now, usec), accuracy, callback, userdata, prior… in event_reset_time_relative()
Devent-util.h13 uint64_t accuracy,
24 uint64_t accuracy,
Devent-source.h96 usec_t next, accuracy; member
Dsd-event.c256 return usec_add(s->time.next, s->time.accuracy); in time_event_source_latest()
1234 uint64_t accuracy, in sd_event_add_time() argument
1245 assert_return(accuracy != UINT64_MAX, -EINVAL); in sd_event_add_time()
1270 s->time.accuracy = accuracy == 0 ? DEFAULT_ACCURACY_USEC : accuracy; in sd_event_add_time()
1292 uint64_t accuracy, in sd_event_add_time_relative() argument
1309 return sd_event_add_time(e, ret, clock, t + usec, accuracy, callback, userdata); in sd_event_add_time_relative()
2673 *usec = s->time.accuracy; in sd_event_source_get_time_accuracy()
2693 s->time.accuracy = usec; in sd_event_source_set_time_accuracy()
/systemd-251/src/basic/
Dtime-util.h127 char* format_timespan(char *buf, size_t l, usec_t t, usec_t accuracy) _warn_unused_result_;
140 #define FORMAT_TIMESPAN(t, accuracy) format_timespan((char[FORMAT_TIMESPAN_MAX]){}, FORMAT_TIMESPAN… argument
Dtime-util.c500 char *format_timespan(char *buf, size_t l, usec_t t, usec_t accuracy) { in format_timespan() argument
545 if (t < accuracy && something) in format_timespan()
564 for (usec_t cc = accuracy; cc > 1; cc /= 10) { in format_timespan()
/systemd-251/src/systemd/
Dsd-event.h90 …event *e, sd_event_source **s, clockid_t clock, uint64_t usec, uint64_t accuracy, sd_event_time_ha…
91 …event *e, sd_event_source **s, clockid_t clock, uint64_t usec, uint64_t accuracy, sd_event_time_ha…
/systemd-251/src/cgtop/
Dcgtop.c96 static const char *maybe_format_timespan(char *buf, size_t l, usec_t t, usec_t accuracy) { in maybe_format_timespan() argument
101 return format_timespan(buf, l, t, accuracy); in maybe_format_timespan()
105 #define MAYBE_FORMAT_TIMESPAN(t, accuracy) \ argument
106 maybe_format_timespan((char[BUFSIZE1]){}, BUFSIZE1, t, accuracy)
/systemd-251/src/resolve/
Dresolved-dns-transaction.c1955 usec_t jitter, accuracy; in dns_transaction_go() local
1966 accuracy = LLMNR_JITTER_INTERVAL_USEC; in dns_transaction_go()
1971 accuracy = MDNS_JITTER_RANGE_USEC; in dns_transaction_go()
1983 jitter, accuracy, in dns_transaction_go()
/systemd-251/LICENSES/
DCC0-1.0.txt110 infringement, or the absence of latent or other defects, accuracy, or
/systemd-251/
DNEWS8542 * Calendar time specifications now support sub-second accuracy.
8621 optionally be specified with sub-second accuracy. Both of
11583 events, per-event timer slack (accuracy), system-wide
11661 * The accuracy of timer units is now configurable with the new
12073 shows timestamps with usec accuracy.