wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Wget-dev] wget2 | WIP: Implemented limit-rate feature (!420)


From: Tim Rühsen
Subject: Re: [Wget-dev] wget2 | WIP: Implemented limit-rate feature (!420)
Date: Mon, 22 Apr 2019 17:53:21 +0000



Tim Rühsen started a new discussion on tests/test-limit-rate.c: 
https://gitlab.com/gnuwget/wget2/merge_requests/420#note_162972383

> +#include <stdlib.h> // exit()
> +#include <sys/time.h>
> +#include "libtest.h"
> +
> +#define SECONDS 1000000
> +
> +#define SIZE_BUFFER 1 * 1024 * 1024
> +static char large_buffer[SIZE_BUFFER];
> +
> +static long long start;
> +static long long elapsed;
> +static long long desired;
> +static long long tolerance;
> +static long long normal_elapsed;
> +
> +long long get_timestamp(void);

Wouldn't millisecond resolution be enough ? If yes, please use 
`wget_get_timemillis()`, and you can also remove `include <sys/time>` then.

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/merge_requests/420#note_162972383
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]