added pgrsTime() to store various time stamps for the -w option
This commit is contained in:
Родитель
4ff9f2b08e
Коммит
5fb1d20ed9
|
@ -111,6 +111,28 @@ void pgrsMode(struct UrlData *data, int mode)
|
|||
|
||||
}
|
||||
|
||||
void pgrsTime(struct UrlData *data, timerid timer)
|
||||
{
|
||||
switch(timer) {
|
||||
default:
|
||||
case TIMER_NONE:
|
||||
/* mistake filter */
|
||||
break;
|
||||
case TIMER_NAMELOOKUP:
|
||||
data->progress.t_nslookup = tvnow();
|
||||
break;
|
||||
case TIMER_CONNECT:
|
||||
data->progress.t_connect = tvnow();
|
||||
break;
|
||||
case TIMER_PRETRANSFER:
|
||||
data->progress.t_pretransfer = tvnow();
|
||||
break;
|
||||
case TIMER_POSTRANSFER:
|
||||
/* this is the normal end-of-transfer thing */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void pgrsStartNow(struct UrlData *data)
|
||||
{
|
||||
data->progress.start = tvnow();
|
||||
|
|
Загрузка…
Ссылка в новой задаче