Searched refs:nsec_t (Results 1 - 14 of 14) sorted by relevance

/systemd/src/basic/
H A Dtime-util.h30 typedef uint64_t nsec_t; typedef
43 #define NSEC_INFINITY ((nsec_t) -1)
48 #define NSEC_PER_SEC ((nsec_t) 1000000000ULL)
49 #define NSEC_PER_MSEC ((nsec_t) 1000000ULL)
50 #define NSEC_PER_USEC ((nsec_t) 1000ULL)
53 #define NSEC_PER_MINUTE ((nsec_t) (60ULL*NSEC_PER_SEC))
55 #define NSEC_PER_HOUR ((nsec_t) (60ULL*NSEC_PER_MINUTE))
57 #define NSEC_PER_DAY ((nsec_t) (24ULL*NSEC_PER_HOUR))
59 #define NSEC_PER_WEEK ((nsec_t) (7ULL*NSEC_PER_DAY))
61 #define NSEC_PER_MONTH ((nsec_t) (262980
[all...]
H A Dtime-util.c43 static nsec_t timespec_load_nsec(const struct timespec *ts);
53 nsec_t now_nsec(clockid_t clock_id) {
134 static nsec_t timespec_load_nsec(const struct timespec *ts) {
142 (nsec_t) ts->tv_sec * NSEC_PER_SEC +
143 (nsec_t) ts->tv_nsec;
809 int parse_nsec(const char *t, nsec_t *nsec) {
812 nsec_t nsec;
847 nsec_t r = 0;
912 nsec_t k = (nsec_t)
[all...]
/systemd/src/test/
H A Dtest-conf-parser.c101 static void test_config_parse_nsec_one(const char *rvalue, nsec_t expected) {
102 nsec_t v = 0;
H A Dtest-time.c81 nsec_t u;
/systemd/src/cgtop/
H A Dcgtop.c57 nsec_t cpu_usage;
58 nsec_t cpu_timestamp;
65 nsec_t io_timestamp;
213 nsec_t timestamp;
232 (nsec_t) new_usage > g->cpu_usage) {
234 nsec_t x, y;
240 y = (nsec_t) new_usage - g->cpu_usage;
245 g->cpu_usage = (nsec_t) new_usage;
276 nsec_t timestamp;
/systemd/src/core/
H A Dcgroup.h142 int unit_get_cpu_usage(Unit *u, nsec_t *ret);
H A Dexecute.h121 nsec_t timer_slack_nsec;
H A Dcgroup.c1515 static int unit_get_cpu_usage_raw(Unit *u, nsec_t *ret) {
1543 int unit_get_cpu_usage(Unit *u, nsec_t *ret) {
1544 nsec_t ns;
1561 nsec_t ns;
H A Dunit.h181 nsec_t cpuacct_usage_base;
H A Ddbus-unit.c798 nsec_t ns = (nsec_t) -1;
H A Ddbus-execute.c1220 nsec_t n;
H A Dmain.c119 static nsec_t arg_timer_slack_nsec = NSEC_INFINITY;
/systemd/src/shared/
H A Dconf-parser.c462 DEFINE_PARSER(nsec, nsec_t, parse_nsec);
H A Dbus-util.c1742 nsec_t n;

Completed in 3694 milliseconds