Changes in uspace/lib/c/generic/io/console.c [205f1add:a35b458] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/generic/io/console.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/console.c
r205f1add ra35b458 223 223 224 224 bool console_get_event_timeout(console_ctrl_t *ctrl, cons_event_t *event, 225 usec_t *timeout)226 { 227 struct time spect0;228 get uptime(&t0);225 suseconds_t *timeout) 226 { 227 struct timeval t0; 228 gettimeofday(&t0, NULL); 229 229 230 230 if (ctrl->input_aid == 0) { … … 257 257 258 258 /* Update timeout */ 259 struct time spect1;260 get uptime(&t1);261 *timeout -= NSEC2USEC(ts_sub_diff(&t1, &t0));259 struct timeval t1; 260 gettimeofday(&t1, NULL); 261 *timeout -= tv_sub_diff(&t1, &t0); 262 262 263 263 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
