Rename SCH_GetFileReadyTime() and extend it to return raw time

This commit is contained in:
Miroslav Lichvar
2013-06-05 17:52:13 +02:00
parent 0074135097
commit 58f768928a
5 changed files with 13 additions and 10 deletions

12
sched.c
View File

@@ -219,11 +219,15 @@ SCH_RemoveInputFileHandler(int fd)
/* ================================================== */
void
SCH_GetFileReadyTime(struct timeval *tv, double *err)
SCH_GetLastEventTime(struct timeval *cooked, double *err, struct timeval *raw)
{
*tv = last_select_ts;
if (err)
*err = last_select_ts_err;
if (cooked) {
*cooked = last_select_ts;
if (err)
*err = last_select_ts_err;
}
if (raw)
*raw = last_select_ts_raw;
}
/* ================================================== */