Searched refs:parse_time (Results 1 - 4 of 4) sorted by relevance

/systemd/src/test/
H A Dtest-time.c61 assert_se(parse_time("5", &u, 1) >= 0);
64 assert_se(parse_time("5", &u, USEC_PER_MSEC) >= 0);
67 assert_se(parse_time("5", &u, USEC_PER_SEC) >= 0);
70 assert_se(parse_time("5s", &u, 1) >= 0);
73 assert_se(parse_time("5s", &u, USEC_PER_SEC) >= 0);
76 assert_se(parse_time("5s", &u, USEC_PER_MSEC) >= 0);
/systemd/src/basic/
H A Dtime-util.h106 int parse_time(const char *t, usec_t *usec, usec_t default_unit);
H A Drlimit-util.c144 r = parse_time(val, &t, 1);
H A Dtime-util.c676 int parse_time(const char *t, usec_t *usec, usec_t default_unit) { function
806 return parse_time(t, usec, USEC_PER_SEC);

Completed in 1950 milliseconds