Searched refs:duration (Results 1 – 6 of 6) sorted by relevance
65 duration_t duration; in sleep_main() local77 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()
35 duration_t duration; in parse_duration_str() local61 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() argument75 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()
49 char duration[sizeof("(%u+02:02)") + sizeof(int)*3]; in show_entry() local72 sprintf(duration, "(%u+%02u:%02u)", days, hours, mins); in show_entry()78 duration_str = duration; in show_entry()
162 static void read_cstate_counts(ullong *usage, ullong *duration) in read_cstate_counts() argument205 duration[level] += bb_strtoull(p, NULL, 10); in read_cstate_counts()
1139 void sleep_for_duration(duration_t duration) FAST_FUNC;1143 #define sleep_for_duration(duration) sleep(duration) argument
205 watchdog.c could autodetect the timer duration via: