time: Ping a url to time the request

View source: R/time.R

timeR Documentation

Ping a url to time the request

Description

Ping a url to time the request

Usage

time(.request, count = 10, delay = 0.5, flood = FALSE, verbose = TRUE, ...)

Arguments

.request

A httr response object

count

integer, Number of requests to do.

delay

integer, Seconds to delay successive calls by. Default: 0.5 seconds.

flood

logical; If TRUE, no delay between requests. If FALSE, delay by 0.5 second.

verbose

logical; If TRUE, print progress.

...

Further args passed on to functions in httr

Examples

## Not run: 
GET("https://mockbin.com/request") %>% time()
GET("https://api.github.com") %>% time()
GET("http://google.com") %>% time()

## End(Not run)

sckott/httping documentation built on Nov. 6, 2022, 8:15 p.m.