Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 6 of 6) sorted by relevance

/busybox-1.35.0/coreutils/
Dsleep.c65 duration_t duration; in sleep_main() local
77 duration = 0; in sleep_main()
79 duration += parse_duration_str(*argv); in sleep_main()
81 sleep_for_duration(duration); in sleep_main()
83 duration = xatou(*argv); in sleep_main()
84 sleep(duration); in sleep_main()
/busybox-1.35.0/libbb/
Dduration.c35 duration_t duration; in parse_duration_str() local
61 duration = d * xatoul_sfx(str, duration_suffixes); in parse_duration_str()
64 duration = xatoul_sfx(str, duration_suffixes); in parse_duration_str()
67 return duration; in parse_duration_str()
69 void FAST_FUNC sleep_for_duration(duration_t duration) in sleep_for_duration() argument
75 if (duration >= 0 && duration < ts.tv_sec) { in sleep_for_duration()
76 ts.tv_sec = duration; in sleep_for_duration()
77 ts.tv_nsec = (duration - ts.tv_sec) * 1000000000; in sleep_for_duration()
/busybox-1.35.0/util-linux/
Dlast_fancy.c49 char duration[sizeof("(%u+02:02)") + sizeof(int)*3]; in show_entry() local
72 sprintf(duration, "(%u+%02u:%02u)", days, hours, mins); in show_entry()
78 duration_str = duration; in show_entry()
/busybox-1.35.0/procps/
Dpowertop.c162 static void read_cstate_counts(ullong *usage, ullong *duration) in read_cstate_counts() argument
205 duration[level] += bb_strtoull(p, NULL, 10); in read_cstate_counts()
/busybox-1.35.0/include/
Dlibbb.h1139 void sleep_for_duration(duration_t duration) FAST_FUNC;
1143 #define sleep_for_duration(duration) sleep(duration) argument
/busybox-1.35.0/
DTODO205 watchdog.c could autodetect the timer duration via: